summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-16 10:39:04 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-16 10:39:04 +0100
commit5f197023db1aee99bb95f4f1fd0ca004745229b2 (patch)
tree9868b40e29ea93d3e4be5d7a12b94060f3f1391a
parent3400e5a12b630fa17c2df2c17554ae89f8aa3b36 (diff)
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>
-rwxr-xr-xlbmk6
1 files changed, 3 insertions, 3 deletions
diff --git a/lbmk b/lbmk
index ab784a5e..de472179 100755
--- a/lbmk
+++ b/lbmk
@@ -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/"