diff --git a/uberspace-backup.sh b/uberspace-backup.sh index 72f2b54..6c93e83 100755 --- a/uberspace-backup.sh +++ b/uberspace-backup.sh @@ -82,7 +82,7 @@ while read -r line; do logecho "${RHOST}: Starting backups" logecho "${RHOST}: Deleting host's temporary directories in ${TEMPDIR}" - rm -rf "${TEMPDIR:?}/${RHOST:?}/*" + rm -rf "${TEMPDIR:?}/${RHOST:?}/"* NORDIR=$(echo "$ALLRDIR" | grep -o "|" | wc -l || true) NORDIR=$(($NORDIR + 1))