summaryrefslogtreecommitdiff
path: root/script/trees
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-30 13:42:42 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-30 13:42:42 +0100
commiteacc41e82af5975ffd310337b0b77d6bb4e5db64 (patch)
tree4a27a743b872cc20bbeb3e017a2c9d64ecdb109d /script/trees
parent5639481419cfe2380df8a1dc326777753bef882a (diff)
trees: condense run_make_command() a bit
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/trees')
-rwxr-xr-xscript/trees4
1 files changed, 1 insertions, 3 deletions
diff --git a/script/trees b/script/trees
index 869b5714..04459ad0 100755
--- a/script/trees
+++ b/script/trees
@@ -249,9 +249,7 @@ run_make_command()
&& makeargs="$makeargs $cbmakeargs"
make -C "$cdir" $mode -j$XBMK_THREADS $makeargs || $err "$cdir mk$mode"
-
- [ -z "$mkhelper" ] || [ -n "$mode" ] || $mkhelper || \
- $err "$cdir: helper command failed: $mkhelper" # eg mkpayload_grub
+ [ -z "$mkhelper" ] || [ -n "$mode" ] || $mkhelper || $err "!$mkhelper"
[ "$mode" != "clean" ] && return 0
make -C "$cdir" distclean 2>/dev/null || :