mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-01-18 16:22:33 +01:00
Removing absolute path, $TARGET includes it already.
This commit is contained in:
parent
fc86bcc4cd
commit
7770306750
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ then
|
||||||
do
|
do
|
||||||
TARGET=$(find /backup -maxdepth 1 -name "*.sql.gz" | sort | head -n 1)
|
TARGET=$(find /backup -maxdepth 1 -name "*.sql.gz" | sort | head -n 1)
|
||||||
echo "Backup $TARGET is deleted"
|
echo "Backup $TARGET is deleted"
|
||||||
rm -rf /backup/"$TARGET"
|
rm -rf "$TARGET"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue