mk: simplify main()

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-05-26 13:33:56 +01:00
parent 41308ee924
commit 5036a0bc50

5
mk
View File

@@ -26,14 +26,13 @@ main()
case "$cmd" in
version) printf "%s\nWebsite: %s\n" "$relname" "$projectsite" ;;
release|download|inject) $cmd "$@" ;;
-*) return 0 ;;
-*) return 1 ;;
*) err "bad command" ;;
esac
set -u -e # some commands disable them. turn them on!
return 1
}
main "$@" || exit 0
main "$@" && exit 0
. "include/tree.sh"