Skip to content

Commit

Permalink
tools/memory-model: Add "--" to parseargs.sh for additional arguments
Browse files Browse the repository at this point in the history
Currently, parseargs.sh expects to consume all the command-line arguments,
which prevents the calling script from having any of its own arguments.
This commit therefore causes parseargs.sh to stop consuming arguments
when it encounters a "--" argument, leaving any remaining arguments for
the calling script.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
  • Loading branch information
Paul E. McKenney committed Mar 24, 2023
1 parent 75eee92 commit 8b99521
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/memory-model/scripts/parseargs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ do
echo "Cannot create directory --destdir '$LKMM_DESTDIR'"
usage
fi
if test -d "$LKMM_DESTDIR" -a -w "$LKMM_DESTDIR" -a -x "$LKMM_DESTDIR"
if test -d "$LKMM_DESTDIR" -a -x "$LKMM_DESTDIR"
then
:
else
Expand Down Expand Up @@ -127,6 +127,10 @@ do
LKMM_TIMEOUT="$2"
shift
;;
--)
shift
break
;;
*)
echo Unknown argument $1
usage
Expand Down

0 comments on commit 8b99521

Please sign in to comment.