lbmk: reduce indentation in execute_command()

Signed-off-by: Leah Rowe <leah@libreboot.org>
btrfsvols
Leah Rowe 2023-09-16 11:28:26 +01:00
parent a9ea277e56
commit a1db59a583
1 changed files with 3 additions and 4 deletions

7
lbmk
View File

@ -97,11 +97,10 @@ execute_command()
./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"
else
"${buildpath}/${mode}/${option}" $@ || fail "lbmk error"
fi
[ -f "${buildpath}/${mode}/${option}" ] || \
fail "Invalid command. Run: ${linkpath} help"
"${buildpath}/${mode}/${option}" $@ || fail "lbmk error"
}
usage()