diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-23 15:31:08 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-23 15:35:13 +0200 |
commit | 556e92c4ae7218ec104aa9f241331c4a61c0f38e (patch) | |
tree | b005890227f8277531f2cd7beb5eb0083877cea8 /pkgs | |
parent | fix(pkgs/stamp): Don't generate completions (diff) | |
download | nixos-config-556e92c4ae7218ec104aa9f241331c4a61c0f38e.tar.gz nixos-config-556e92c4ae7218ec104aa9f241331c4a61c0f38e.zip |
fix(pkgs/stamp): Break from the `while` loop not the `case`
Diffstat (limited to 'pkgs')
-rwxr-xr-x | pkgs/by-name/st/stamp/stamp.sh | 5 |
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 |