From 52f91d1e57c2476df97aefc61e0b62726959b108 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 3 May 2009 09:53:28 +0200 Subject: Correcting clean option of lh_config to tidy configuration tree. --- helpers/lh_config | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/helpers/lh_config b/helpers/lh_config index f91f026..9daa087 100755 --- a/helpers/lh_config +++ b/helpers/lh_config @@ -196,7 +196,7 @@ Local_arguments () exit 0 ;; - clean) + --clean) # Remove empty directories in config tree if ls config/*/ > /dev/null 2>&1 then @@ -207,6 +207,13 @@ Local_arguments () then rmdir --ignore-fail-on-non-empty config fi + + if [ -d scripts ] + then + rmdir --ignore-fail-on-non-empty scripts + fi + + exit 0 ;; # config/common -- cgit v1.0