delete empty archive-dirs

This commit is contained in:
Jakobus Schürz 2020-01-22 13:18:46 +01:00
parent 1646d79a58
commit 4a1e916bd3

View file

@ -104,7 +104,7 @@ if [ $(id -u) -ne 0 ]; then
for i in $(find ${ARCHIVPATH} -type d); do
if [ ! "$(ls -A $i)" ]; then
echo "DIR $i is empty -> remove it"
echo rm -rf "$i"
rm -vr "$i"
fi
done