summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-10-19 23:36:56 +0100
committerLeah Rowe <leah@libreboot.org>2023-10-19 23:36:56 +0100
commit0b98c9b00c6b99940555cff25f7c6858745a560c (patch)
treee79ed28e199df51146d6d850c224ee6b2e518638 /build
parent8b6e44a104680412967acd6ac760945f8233abf2 (diff)
minor code cleanup in shell scripts
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'build')
-rwxr-xr-xbuild13
1 files changed, 3 insertions, 10 deletions
diff --git a/build b/build
index a539322f..09b08403 100755
--- a/build
+++ b/build
@@ -59,7 +59,7 @@ initialise_command()
[ "${mode}" = "help" ] && usage ${0} && lbmk_exit 0
if [ "${mode}" = "list" ]; then
- listitems "${buildpath}"
+ items "${buildpath}"
lbmk_exit 0
elif [ $# -lt 2 ]; then
usage ${0}
@@ -91,15 +91,8 @@ install_packages()
execute_command()
{
- if [ "${option}" = "list" ]; then
- xx_ listitems "${buildpath}/${mode}"
- lbmk_exit 0
- fi
+ [ "$option" = "list" ] && xx_ items "$buildpath/$mode" && lbmk_exit 0
lbmkcmd="${buildpath}/${mode}/${option}"
- [ "${lbmkcmd}" = "./script/build/boot/roms" ] && \
- printf "NOTE: ./build boot roms now: ./build fw coreboot\n" 1>&2
- [ "${lbmkcmd%/*}" = "./script/update/blobs" ] && \
- printf "NOTE: ./update blobs is now: ./update vendor\n" 1>&2
[ -f "${lbmkcmd}" ] || fail "Invalid command. Run: ${linkpath} help"
"${lbmkcmd}" $@ || fail "execute_command: ${lbmkcmd} ${@}"
}
@@ -111,7 +104,7 @@ usage()
USAGE: ${progname} <MODE> <OPTION>
possible values for 'mode':
- $(listitems "${buildpath}")
+ $(items "${buildpath}")
For each of the above modes, you may also do:
${progname} <MODE> list