summaryrefslogtreecommitdiff
path: root/lbmk
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-16 11:28:26 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-16 11:28:26 +0100
commita1db59a5834cff370a94f922ccbec897e4946cba (patch)
tree57c85fb4b21f76089f05448e773e93c69165c76f /lbmk
parenta9ea277e568dcf1dd30a8cd557bcf8ee9e864c95 (diff)
lbmk: reduce indentation in execute_command()
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'lbmk')
-rwxr-xr-xlbmk7
1 files changed, 3 insertions, 4 deletions
diff --git a/lbmk b/lbmk
index 10bef6aa..e0b8fccc 100755
--- a/lbmk
+++ b/lbmk
@@ -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()