Restoring $(basename -- "$DEST")

In case the destination is later on generated in a different way,
also makes the code and intention more explicit.
This commit is contained in:
Laurent Cozic
2013-11-27 12:36:54 +08:00
parent d73b3ffe43
commit c854cd17c6
+1 -1
View File
@@ -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