From cc61bd12392ce545420746d2b5f441e5169324ff Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 29 Jun 2024 19:44:47 +0100 Subject: [PATCH] trees: simplify "utilmode" variable initialisation Signed-off-by: Leah Rowe --- script/trees | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/script/trees b/script/trees index dafde07..0142b43 100755 --- a/script/trees +++ b/script/trees @@ -188,8 +188,7 @@ check_coreboot_utils() utilelfdir="elf/$util/$1" utilsrcdir="src/coreboot/$1/util/$util" - utilmode="" - [ -z "$mode" ] || utilmode="clean" + utilmode="" && [ -n "$mode" ] && utilmode="clean" x_ make -C "$utilsrcdir" $utilmode -j$XBMK_THREADS $cbmakeargs [ -z "$mode" ] && [ ! -f "$utilelfdir/$util" ] && \ x_ mkdir -p "$utilelfdir" && \