summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-29 19:44:47 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-29 19:44:47 +0100
commit8d02adfbb5b4466f218b2c4f25296382ec023dc6 (patch)
treea9d3cc290c8b22745ff2de4d8ef391565a0255d2
parentd1b7882c5a7ba8495ec7868f6fab64a0f9d1439a (diff)
trees: simplify "utilmode" variable initialisation
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xscript/trees3
1 files changed, 1 insertions, 2 deletions
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" && \