From 451c511554730e0a4944694f85531248c7ffc608 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Thu, 28 Sep 2023 10:18:18 +0100 Subject: [PATCH] Hopefully fix REMOVE_BACKUP_VOLUME_AFTER_UPLOAD --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 3201006..6aad3f4 100755 --- a/backup.sh +++ b/backup.sh @@ -134,6 +134,6 @@ if [[ \ $*\ != *\ --skip-upload\ * ]]; then if [ "$REMOVE_BACKUP_VOLUME_AFTER_UPLOAD" -eq 1 ]; then echo "Cleaning up ${backup_path}" - rm -rf "${backup_path}" + rm -rf "${backup_path:?}"/* fi fi