Merge pull request #4 from waja/fix/path_fix

Removing absolute path, $TARGET includes it already.
This commit is contained in:
Fco. Javier Delgado del Hoyo 2017-04-11 09:25:42 +02:00 committed by GitHub
commit b3bb91adf7

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