Add back the usage test for two arguments, except when the command is 'status'

This commit is contained in:
Bryan Boreham committed 2014-08-29 15:35:27 +01:00
1 parent cff8e93de1
commit c8da7131a5
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@ usage() {
exit 1
}
if [ "$#" -lt 1 ]; then
if [ "$COMMAND" != "status" -a "$#" -lt 2 ]; then
usage
exit 1
fi