Add back the usage test for two arguments, except when the command is 'status'
This commit is contained in:
1 parent
cff8e93de1
commit
c8da7131a5
1 file changed
+1
-1
+1
-1
@@ -17,7 +17,7 @@ usage() {
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ "$#" -lt 1 ]; then
|
||||
if [ "$COMMAND" != "status" -a "$#" -lt 2 ]; then
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user