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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user