about summary refs log tree commit diff stats
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-23 15:31:08 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-23 15:35:13 +0200
commit556e92c4ae7218ec104aa9f241331c4a61c0f38e (patch)
treeb005890227f8277531f2cd7beb5eb0083877cea8 /pkgs/by-name
parentfix(pkgs/stamp): Don't generate completions (diff)
downloadnixos-config-556e92c4ae7218ec104aa9f241331c4a61c0f38e.tar.gz
nixos-config-556e92c4ae7218ec104aa9f241331c4a61c0f38e.zip
fix(pkgs/stamp): Break from the `while` loop not the `case`
Diffstat (limited to '')
-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