From 61136611de53043da9f75ef24aa632a0290ba200 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Sun, 16 Apr 2023 02:51:01 +0200 Subject: [PATCH] Use relative path in latest link --- root/usr/local/bin/incremental-backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/usr/local/bin/incremental-backup b/root/usr/local/bin/incremental-backup index 6aba77a..2b19bfc 100755 --- a/root/usr/local/bin/incremental-backup +++ b/root/usr/local/bin/incremental-backup @@ -33,5 +33,5 @@ rsync -avHAXS \ # want to override latest symlink to non-existent location if [ -d "${BACKUP_PATH}" ]; then rm "${LATEST_LINK}" 2>/dev/null - ln -s "${BACKUP_PATH}" "${LATEST_LINK}" + ln -s "$(basename "$BACKUP_DIR")" "${LATEST_LINK}" fi