Fix error message when unknown subcommand is used

This commit is contained in:
Ryan Schmidt
2018-03-10 22:48:35 -06:00
parent 640313a8d8
commit a6dcbb85c8
+1 -1
View File
@@ -107,7 +107,7 @@ for cmd in "${cmds[@]}"; do
done
# shellcheck disable=SC2181
if (( $? != 0 || ${#cmds[@]} == 0 )); then
err "Unknown command \`$cmd'"
err "Unknown command \`$subcmd'"
echo >&2 "Try \`$0 help' for more information."
exit 2
fi