Fix emergency script arg counting
This commit is contained in:
parent
c26282c605
commit
3836681223
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue