2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-23 11:40:25 +00:00

Usage never gets printed if nothing is passed to script

This commit is contained in:
Victor Hu
2019-06-03 11:37:36 -04:00
parent 2351b0ce63
commit 2fbb4ec269

View File

@@ -67,7 +67,7 @@ rmdef testnode
}
NETBOOT=""
SHELLFOLDER=""
while [ "$#" -gt "0" ]
while [ "$#" -ge "0" ]
do
case $1 in
"--check" )
@@ -96,7 +96,7 @@ do
;;
*)
echo
echo "Please Insert $0: -cd|-c"
echo "Error: Usage: $0: -cd|-c"
echo
exit 1;
;;