summaryrefslogtreecommitdiff
path: root/scripts/build/lb_config
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/lb_config')
-rwxr-xr-xscripts/build/lb_config29
1 files changed, 5 insertions, 24 deletions
diff --git a/scripts/build/lb_config b/scripts/build/lb_config
index d91aea1ef..ee12c325a 100755
--- a/scripts/build/lb_config
+++ b/scripts/build/lb_config
@@ -1370,30 +1370,11 @@ Check_defaults
if [ "${_CLEAN}" = "true" ]
then
# Remove empty directories in config tree
- if ls config/*/ > /dev/null 2>&1
- then
- rmdir --ignore-fail-on-non-empty config/*/
- fi
-
- if [ -d config ]
- then
- rmdir --ignore-fail-on-non-empty config
- fi
-
- if [ -d auto/functions ]
- then
- rmdir --ignore-fail-on-non-empty auto/functions
- fi
-
- if [ -d auto/scripts ]
- then
- rmdir --ignore-fail-on-non-empty auto/scripts
- fi
-
- if [ -d auto ]
- then
- rmdir --ignore-fail-on-non-empty auto
- fi
+ rmdir --ignore-fail-on-non-empty config/*/ > /dev/null 2>&1 || true
+ rmdir --ignore-fail-on-non-empty config > /dev/null 2>&1 || true
+ rmdir --ignore-fail-on-non-empty auto/functions > /dev/null 2>&1 || true
+ rmdir --ignore-fail-on-non-empty auto/scripts > /dev/null 2>&1 || true
+ rmdir --ignore-fail-on-non-empty auto > /dev/null 2>&1 || true
fi
# Creating stage file