lbmk: always use lbmk_exit for exits

there were certain edge cases where TMPDIR wasn't
being cleaned. this patch will fix that.

Signed-off-by: Leah Rowe <leah@libreboot.org>
btrfsvols
Leah Rowe 2023-09-16 10:39:04 +01:00
parent 3400e5a12b
commit 5f197023db
1 changed files with 3 additions and 3 deletions

6
lbmk
View File

@ -58,10 +58,10 @@ main()
buildpath="./script/${0##*/}"
[ "${mode}" = "help" ] && usage ${0} && exit 0
[ "${mode}" = "help" ] && usage ${0} && lbmk_exit 0
[ "${mode}" = "list" ] && ./build command options "${buildpath}" && \
exit 0
[ $# -lt 2 ] && usage ${0} && exit 1
lbmk_exit 0
[ $# -lt 2 ] && usage ${0} && lbmk_exit 1
./checkgit || fail "Please read: https://libreboot.org/docs/build/"