diff options
author | Daniel Baumann <daniel@debian.org> | 2009-05-03 09:53:28 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:09:44 +0100 |
commit | 52f91d1e57c2476df97aefc61e0b62726959b108 (patch) | |
tree | dbcd3dd9b983c27bd814d1b72cac26bc80906a50 /helpers | |
parent | 60d87f4f918802b55d809942381d5119b50adbe1 (diff) | |
download | vyos-live-build-52f91d1e57c2476df97aefc61e0b62726959b108.tar.gz vyos-live-build-52f91d1e57c2476df97aefc61e0b62726959b108.zip |
Correcting clean option of lh_config to tidy configuration tree.
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/lh_config | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/helpers/lh_config b/helpers/lh_config index f91f02636..9daa087b0 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 |