From a8e374020c0bea6cc849ffdf424b382fe535fee9 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 10 May 2025 17:19:00 +0100 Subject: tree.sh: simplified srcdir check on make-clean this is the check that ksips a given target if the tree directory does not exist, on the clean command. Signed-off-by: Leah Rowe --- include/tree.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/tree.sh') diff --git a/include/tree.sh b/include/tree.sh index 47f65d10..1d5dd071 100644 --- a/include/tree.sh +++ b/include/tree.sh @@ -112,9 +112,8 @@ handle_defconfig() chkvars tree srcdir="src/$project/$tree" - if [ "$mode" = "distclean" ] || [ "$mode" = "crossgcc-clean" ]; then - [ -d "$srcdir" ] || return 0 - fi + [ "$mode" = "${mode%clean}" ] && [ ! -d "$srcdir" ] && return 0 + [ -z "$mode" ] && for _xarch in $xarch; do $dry check_cross_compiler "$_xarch" done; : -- cgit v1.2.1