mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 14:12:44 +02:00
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 <leah@libreboot.org>
This commit is contained in:
@@ -24,13 +24,14 @@ main()
|
|||||||
case "$cmd" in
|
case "$cmd" in
|
||||||
version) printf "%s\nWebsite: %s\n" "$relname" "$projectsite" ;;
|
version) printf "%s\nWebsite: %s\n" "$relname" "$projectsite" ;;
|
||||||
release|download|inject) $cmd "$@" ;;
|
release|download|inject) $cmd "$@" ;;
|
||||||
-*) return 1 ;;
|
-*) return 0 ;;
|
||||||
*) err "bad command" ;;
|
*) err "bad command" ;;
|
||||||
esac
|
esac
|
||||||
set -u -e # some commands disable them. turn them on!
|
set -u -e # some commands disable them. turn them on!
|
||||||
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@" && exit 0
|
main "$@" || exit 0
|
||||||
|
|
||||||
. "include/git.sh"
|
. "include/git.sh"
|
||||||
. "include/tree.sh"
|
. "include/tree.sh"
|
||||||
|
|||||||
Reference in New Issue
Block a user