Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] support/scripts/check-merged: shift args processed by getopts
@ 2025-11-29 20:34 José Luis Salvador Rufo
  2025-11-30  7:51 ` Yann E. MORIN via buildroot
  0 siblings, 1 reply; 3+ messages in thread
From: José Luis Salvador Rufo @ 2025-11-29 20:34 UTC (permalink / raw)
  To: buildroot; +Cc: José Luis Salvador Rufo, Yann E . MORIN, Edgar Bonet

Shift the arguments processed by getopts so that only the root directories
to check remain as arguments for the subsequent `for root; do` loop.

Fixes: 793ebd5d28095c8df45a0d183d273d8a84b3f0a4
Reviewed-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Edgar Bonet <bonet@grenoble.cnrs.fr>
Signed-off-by: José Luis Salvador Rufo <salvador.joseluis@gmail.com>
---
 support/scripts/check-merged | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/support/scripts/check-merged b/support/scripts/check-merged
index 447abfd815..57db8abd21 100755
--- a/support/scripts/check-merged
+++ b/support/scripts/check-merged
@@ -47,6 +47,10 @@ while getopts "t:ub" OPT; do
 	esac
 done
 
+# Remove the options processed by getopts from $@,
+# so that $@ now contains only the root directories to check.
+shift $((OPTIND -1))
+
 if [ "${type}" = "skeleton" ]; then
 	strict=true
 else
-- 
2.52.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-11-30 17:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-29 20:34 [Buildroot] [PATCH 1/1] support/scripts/check-merged: shift args processed by getopts José Luis Salvador Rufo
2025-11-30  7:51 ` Yann E. MORIN via buildroot
2025-11-30 17:06   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox