mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-23 19:50:21 +00:00
Usage never gets printed if nothing is passed to script
This commit is contained in:
@@ -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;
|
||||
;;
|
||||
|
Reference in New Issue
Block a user