diff options
| author | Laurent Cozic <laurent@pogopixels.com> | 2013-11-27 12:36:54 +0800 |
|---|---|---|
| committer | Laurent Cozic <laurent@pogopixels.com> | 2013-11-27 12:36:54 +0800 |
| commit | c854cd17c6c6c76de4ec2cae365e0b6fd9e7f1cf (patch) | |
| tree | e378ce5d7e904def4af176fe3be54b14bcbf20b3 | |
| parent | d73b3ffe43de1931bb419aef0255ca1ffa401e0c (diff) | |
Restoring `$(basename -- "$DEST")`
In case the destination is later on generated in a different way,
also makes the code and intention more explicit.
| -rw-r--r-- | rsync_tmbackup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
