Removing absolute path, $TARGET includes it already.

This commit is contained in:
Jan Wagner 2017-04-10 08:55:09 +02:00
parent fc86bcc4cd
commit 7770306750

View file

@ -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