From 0ca0ac8f6860121708f3ae4f9be55c33acc24cb4 Mon Sep 17 00:00:00 2001 From: Manuel Date: Mon, 12 Nov 2018 21:12:12 +0100 Subject: [PATCH] Fix symlink creation --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 4dc4f20..49b8d74 100755 --- a/backup.sh +++ b/backup.sh @@ -16,7 +16,7 @@ do then gzip -f "$FILENAME" rm "$LATEST" 2> /dev/null - ln -s "$FILENAME" "$LATEST" + cd backup && ln -s $(basename "$FILENAME".gz) $(basename "$LATEST") && cd .. else rm -rf "$FILENAME" fi