general code cleanup in shell scripts

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-10-05 22:16:07 +01:00
parent cad7648a26
commit 106841024a
3 changed files with 19 additions and 31 deletions
+2 -2
View File
@@ -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}"
}