mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2024-11-01 08:31:45 +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
|
||||
TARGET=$(find /backup -maxdepth 1 -name "*.sql.gz" | sort | head -n 1)
|
||||
echo "Backup $TARGET is deleted"
|
||||
rm -rf /backup/"$TARGET"
|
||||
rm -rf "$TARGET"
|
||||
done
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue