Fix symlink creation

This commit is contained in:
Manuel 2018-11-12 21:12:12 +01:00
parent c2055f02c6
commit 0ca0ac8f68

View file

@ -16,7 +16,7 @@ do
then then
gzip -f "$FILENAME" gzip -f "$FILENAME"
rm "$LATEST" 2> /dev/null rm "$LATEST" 2> /dev/null
ln -s "$FILENAME" "$LATEST" cd backup && ln -s $(basename "$FILENAME".gz) $(basename "$LATEST") && cd ..
else else
rm -rf "$FILENAME" rm -rf "$FILENAME"
fi fi