Show error when invalid command specified

This commit is contained in:
Janek Bevendorff 2017-01-28 23:17:48 +01:00
parent 5652018cde
commit 05aefc6489
No known key found for this signature in database
GPG Key ID: CFEC2F6850BFFA53

View File

@ -53,8 +53,7 @@ printUsage() {
elif [ "merge" == "$1" ] || [ "build" == "$1" ] || [ "sign" == "$1" ]; then
cmd="$1"
else
logError "Unknown command: '$1'"
echo
logError "Unknown command: '$1'\n"
cmd="COMMAND"
fi
@ -627,4 +626,6 @@ elif [ "help" == "$MODE" ]; then
exit
elif [ "merge" == "$MODE" ] || [ "build" == "$MODE" ] || [ "sign" == "$MODE" ]; then
$MODE "$@"
else
printUsage "$MODE"
fi