From: "José Luis Salvador Rufo" <salvador.joseluis@gmail.com>
To: buildroot@buildroot.org
Cc: "José Luis Salvador Rufo" <salvador.joseluis@gmail.com>,
"Yann E . MORIN" <yann.morin.1998@free.fr>,
"Edgar Bonet" <bonet@grenoble.cnrs.fr>
Subject: [Buildroot] [PATCH 1/1] support/scripts/check-merged: shift args processed by getopts
Date: Sat, 29 Nov 2025 21:34:55 +0100 [thread overview]
Message-ID: <20251129203454.4193005-2-salvador.joseluis@gmail.com> (raw)
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
next reply other threads:[~2025-11-29 20:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-29 20:34 José Luis Salvador Rufo [this message]
2025-11-30 7:51 ` [Buildroot] [PATCH 1/1] support/scripts/check-merged: shift args processed by getopts Yann E. MORIN via buildroot
2025-11-30 17:06 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251129203454.4193005-2-salvador.joseluis@gmail.com \
--to=salvador.joseluis@gmail.com \
--cc=bonet@grenoble.cnrs.fr \
--cc=buildroot@buildroot.org \
--cc=yann.morin.1998@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox