improve output
This commit is contained in:
parent
845e908c65
commit
377fff977e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue