From 917f699cc7c414df3215009c768d888d7f0a2114 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 20 Jun 2023 01:04:11 +0100 Subject: [PATCH] lbmk: exit 1 if script failed script is -e anyway, so this is redundant, but best put it here anyway. it can only help. correct behaviour is always to fail on error, except in certain cases that would be handled on a case-by-case basis in each script --- lbmk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbmk b/lbmk index 61e6d6da..c51a0b08 100755 --- a/lbmk +++ b/lbmk @@ -80,7 +80,7 @@ main() printf "Invalid option for '%s'." ${mode} die "Run: ${0} ${mode} list'." fi - "${buildpath}/${mode}/${option}" $@ + "${buildpath}/${mode}/${option}" $@ || exit 1 esac ./.gitcheck clean