improve output

This commit is contained in:
Jakobus Schürz 2020-01-22 13:21:35 +01:00
parent 845e908c65
commit 377fff977e

View file

@ -101,7 +101,7 @@ if [ $(id -u) -ne 0 ]; then
WORKDIR="${HOME}/Work" WORKDIR="${HOME}/Work"
# First cleanup all empty Archivdirectories for workdir # First cleanup all empty Archivdirectories for workdir
for i in $(find ${ARCHIVPATH} -type d); do for i in $(find ${ARCHIVPATH} -type d |grep -v "$WDOTD" ); do
if [ ! "$(ls -A $i)" ]; then if [ ! "$(ls -A $i)" ]; then
echo "DIR $i is empty -> remove it" >&2 echo "DIR $i is empty -> remove it" >&2
rm -vr "$i" 2>&1 |tee -a ${MYSHELLCONFIG_LOGFILE} >&2 rm -vr "$i" 2>&1 |tee -a ${MYSHELLCONFIG_LOGFILE} >&2