aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpkgs/by-name/st/stamp/stamp.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/by-name/st/stamp/stamp.sh b/pkgs/by-name/st/stamp/stamp.sh
index 7d71c403..4c594767 100755
--- a/pkgs/by-name/st/stamp/stamp.sh
+++ b/pkgs/by-name/st/stamp/stamp.sh
@@ -59,7 +59,8 @@ done
[ "$(git rev-parse --is-inside-work-tree)" = "true" ] || die "You need to be in a git directory"
-while [ "$#" -gt 0 ]; do
+run=true
+while [ "$#" -gt 0 ] && [ "$run" = true ]; do
case "$1" in
"--license" | "-l")
shift 1
@@ -70,7 +71,7 @@ while [ "$#" -gt 0 ]; do
"copyright" | "c")
shift 1
# The files should now be in $@
- break
+ run=false
;;
esac
done