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>btrfsvols
parent
f1f5b91a85
commit
a9ea277e56
3
lbmk
3
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"
|
||||
|
|
Loading…
Reference in New Issue