Merge pull request #2 from waja/fix/remove_old_dumps

Remove backslash before ${TARGET}, it breaks cleanup
This commit is contained in:
Fco. Javier Delgado del Hoyo 2017-04-08 16:33:24 +02:00 committed by GitHub
commit cc9514d67c

View file

@ -21,8 +21,8 @@ if [ -n "$MAX_BACKUPS" ]; then
while [ `ls -1 /backup | wc -l` -gt "$MAX_BACKUPS" ];
do
TARGET=`ls -1 /backup | sort | head -n 1`
echo "Backup \${TARGET} is deleted"
rm -rf /backup/\${TARGET}
echo "Backup ${TARGET} is deleted"
rm -rf /backup/${TARGET}
done
fi