From c854cd17c6c6c76de4ec2cae365e0b6fd9e7f1cf Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Wed, 27 Nov 2013 12:36:54 +0800 Subject: Restoring `$(basename -- "$DEST")` In case the destination is later on generated in a different way, also makes the code and intention more explicit. --- rsync_tmbackup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsync_tmbackup.sh b/rsync_tmbackup.sh index 3d0b947..c49d8f2 100644 --- a/rsync_tmbackup.sh +++ b/rsync_tmbackup.sh @@ -262,7 +262,7 @@ while : ; do # ----------------------------------------------------------------------------- rm -rf -- "$DEST_FOLDER/latest" - ln -vs -- "$NOW" "$DEST_FOLDER/latest" + ln -vs -- "$(basename -- "$DEST")" "$DEST_FOLDER/latest" rm -f -- "$INPROGRESS_FILE" # TODO: grep for "^rsync error:.*$" in log -- cgit v1.2.3