From ca77d3a3d770e5b4f5725c2a9b62216ecf32ca03 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 30 Jun 2024 15:46:03 +0100 Subject: [PATCH] trees run_make_command: simpler distclean handling Signed-off-by: Leah Rowe --- script/trees | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/script/trees b/script/trees index d8d3b8c..27c5f59 100755 --- a/script/trees +++ b/script/trees @@ -246,8 +246,7 @@ run_make_command() make -C "$cdir" $mode -j$XBMK_THREADS $makeargs || $err "$cdir mk$mode" [ -z "$mkhelper" ] || [ -n "$mode" ] || $mkhelper || $err "!$mkhelper" - [ "$mode" != "clean" ] && return 0 - make -C "$cdir" distclean 2>/dev/null || : + [ "$mode" = "clean" ] && make -C "$cdir" distclean || :; return 0 } check_cmake()