From 556e92c4ae7218ec104aa9f241331c4a61c0f38e Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 23 Aug 2024 15:31:08 +0200 Subject: fix(pkgs/stamp): Break from the `while` loop not the `case` --- pkgs/by-name/st/stamp/stamp.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkgs') 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 -- cgit 1.4.1