From ff33ec3352babab4c827121099192f014a960c43 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 8 May 2025 23:41:24 +0100 Subject: mk: use zero exit instead, to run trees that way, with set -u -e, we aren't risking some buggy sh implementations from causing an error exit where it shouldn't. Signed-off-by: Leah Rowe --- mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mk') diff --git a/mk b/mk index 1a7b896f..af29f1e2 100755 --- a/mk +++ b/mk @@ -24,13 +24,14 @@ main() case "$cmd" in version) printf "%s\nWebsite: %s\n" "$relname" "$projectsite" ;; release|download|inject) $cmd "$@" ;; - -*) return 1 ;; + -*) return 0 ;; *) err "bad command" ;; esac set -u -e # some commands disable them. turn them on! + return 1 } -main "$@" && exit 0 +main "$@" || exit 0 . "include/git.sh" . "include/tree.sh" -- cgit v1.2.1