Use relative path in latest link

This commit is contained in:
ItsDrike 2023-04-16 02:51:01 +02:00
parent e7f7ac8334
commit 61136611de
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

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