summaryrefslogtreecommitdiff
path: root/script/build/coreboot
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-10-05 22:16:07 +0100
committerLeah Rowe <leah@libreboot.org>2023-10-05 22:16:07 +0100
commit106841024a5d744768734def462387648d473014 (patch)
tree5af66850a72e7f6610278b18b404f33169eab398 /script/build/coreboot
parentcad7648a2696f9453028c98ea74aac7bde85feeb (diff)
general code cleanup in shell scripts
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/build/coreboot')
-rwxr-xr-xscript/build/coreboot/utils4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/build/coreboot/utils b/script/build/coreboot/utils
index 75827d86..e3d471ad 100755
--- a/script/build/coreboot/utils
+++ b/script/build/coreboot/utils
@@ -21,9 +21,9 @@ main()
build_for_mainboard() {
[ -f "config/coreboot/${1}/target.cfg" ] || \
err "build_for_mainboard ${1}: target.cfg does not exist"
- tree="undefined"
+ tree=""
. "config/coreboot/${1}/target.cfg" # source
- [ "${tree}" = "undefined" ] && \
+ [ -z ${tree} ] && \
err "build_for_mainboard ${1}: improper tree definition"
buildutils "${tree}"
}