summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-16 11:25:35 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-16 11:25:35 +0100
commita9ea277e568dcf1dd30a8cd557bcf8ee9e864c95 (patch)
tree66259ba58fc5dcbd952c037160bcf3bdad075c68
parentf1f5b91a854ec5fe563d934c87126aba2f85d1b9 (diff)
lbmk: fail if ./build command options fails
non-zero exit, whereas it was previously an unhandled non-zero exit as per -e - now it is simply more verbose. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xlbmk3
1 files changed, 2 insertions, 1 deletions
diff --git a/lbmk b/lbmk
index 83ed993c..10bef6aa 100755
--- a/lbmk
+++ b/lbmk
@@ -94,7 +94,8 @@ install_packages()
execute_command()
{
if [ "${option}" = "list" ]; then
- ./build command options "${buildpath}/${mode}"
+ ./build command options "${buildpath}/${mode}" || \
+ fail "execute_command: cannot list command options"
lbmk_exit 0
elif [ ! -f "${buildpath}/${mode}/${option}" ]; then
fail "Invalid command. Run: ${linkpath} help"