1
Fork 0

Fix emergency script arg counting

This commit is contained in:
prescientmoon 2024-08-26 19:25:44 +02:00
parent c26282c605
commit 3836681223
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -3,7 +3,7 @@
#!nix-shell -i bash #!nix-shell -i bash
# Check if at least one argument is provided # Check if at least one argument is provided
if [ "$#" != "1" ] && [ "$#" != "2" ]; then if [ "$#" != "2" ] && [ "$#" != "3" ]; then
echo "Usage: $0 <host> <disko-mode> [action]" echo "Usage: $0 <host> <disko-mode> [action]"
exit 1 exit 1
fi fi