From 8d02adfbb5b4466f218b2c4f25296382ec023dc6 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 29 Jun 2024 19:44:47 +0100 Subject: trees: simplify "utilmode" variable initialisation Signed-off-by: Leah Rowe --- script/trees | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'script') diff --git a/script/trees b/script/trees index fd14b099..ce590bdd 100755 --- a/script/trees +++ b/script/trees @@ -190,8 +190,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" && \ -- cgit v1.2.1