From 106841024a5d744768734def462387648d473014 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 5 Oct 2023 22:16:07 +0100 Subject: general code cleanup in shell scripts Signed-off-by: Leah Rowe --- script/build/coreboot/utils | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'script/build/coreboot/utils') 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}" } -- cgit v1.2.1