From a9ea277e568dcf1dd30a8cd557bcf8ee9e864c95 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 16 Sep 2023 11:25:35 +0100 Subject: 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 --- lbmk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lbmk') 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" -- cgit v1.2.1