From a75604c097239070091a9ec5f86484c2723362ea Mon Sep 17 00:00:00 2001 From: Max Mehl Date: Wed, 13 Dec 2023 16:53:15 +0100 Subject: [PATCH] fix expansion --- uberspace-backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))