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:37:33 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-23 15:37:33 +0200
commitf867bede10e32ace2b3eff172cfa2075e6431ff6 (patch)
treeabece764d1dc126b998bbff8be21d03068b237b8 /pkgs/by-name
parentfix(pkgs/stamp): Break from the `while` loop not the `case` (diff)
downloadnixos-config-f867bede10e32ace2b3eff172cfa2075e6431ff6.tar.gz
nixos-config-f867bede10e32ace2b3eff172cfa2075e6431ff6.zip
fix(pkgs/stamp): Recognize unknown commands
Diffstat (limited to '')
-rwxr-xr-xpkgs/by-name/st/stamp/stamp.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/by-name/st/stamp/stamp.sh b/pkgs/by-name/st/stamp/stamp.sh
index 4c594767..15bf887a 100755
--- a/pkgs/by-name/st/stamp/stamp.sh
+++ b/pkgs/by-name/st/stamp/stamp.sh
@@ -73,6 +73,8 @@ while [ "$#" -gt 0 ] && [ "$run" = true ]; do
         # The files should now be in $@
         run=false
         ;;
+    *)
+        die "Unknown command: $1"
     esac
 done