diff options
author | Leah Rowe <leah@libreboot.org> | 2025-05-26 13:33:56 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-05-26 13:33:56 +0100 |
commit | 5036a0bc501b5b26d429701a8e9dd71339ec18a0 (patch) | |
tree | df279ec81a163d2531aea355024939a65a76846f | |
parent | 41308ee924445cad61e599aebf15557a0351522b (diff) |
mk: simplify main()
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-x | mk | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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" |