add {} around variable

This commit is contained in:
Thijs van Loef
2024-01-29 17:55:28 +01:00
parent 044bb681a4
commit 73420e94c9

View File

@@ -18,5 +18,5 @@ echo "backup created at $FILE_PATH"
if [ "${DELETE_OLD_BACKUPS}" = true ]; then
echo "removing backups older than ${OLD_BACKUP_DAYS:=30} days"
find /palworld/backups/ -mindepth 1 -maxdepth 1 -mtime "+$OLD_BACKUP_DAYS" -print -delete
find /palworld/backups/ -mindepth 1 -maxdepth 1 -mtime "+${OLD_BACKUP_DAYS}" -print -delete
fi