delete empty archive-dirs
This commit is contained in:
parent
1646d79a58
commit
4a1e916bd3
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ if [ $(id -u) -ne 0 ]; then
|
||||||
for i in $(find ${ARCHIVPATH} -type d); do
|
for i in $(find ${ARCHIVPATH} -type d); do
|
||||||
if [ ! "$(ls -A $i)" ]; then
|
if [ ! "$(ls -A $i)" ]; then
|
||||||
echo "DIR $i is empty -> remove it"
|
echo "DIR $i is empty -> remove it"
|
||||||
echo rm -rf "$i"
|
rm -vr "$i"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue