summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Arthur <mumrah@gmail.com>2013-11-13 15:52:24 -0500
committerDavid Arthur <mumrah@gmail.com>2013-11-13 15:52:24 -0500
commit0c679903afba716726bbf3040f697622985d653b (patch)
tree47ec099c57e7fed9bdeefd01e9b4712869e38fe5
parentbda24be00314f7146bc5064193497f640004faa4 (diff)
Fixed
Brain fart
-rw-r--r--rsync_tmbackup.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/rsync_tmbackup.sh b/rsync_tmbackup.sh
index ea5fb8f..fd997a6 100644
--- a/rsync_tmbackup.sh
+++ b/rsync_tmbackup.sh
@@ -226,7 +226,8 @@ while [ "1" ]; do
fi
if [ "$RSYNC_EXIT_CODE" != "0" ]; then
- ln -s $DEST $DEST/../latest
+ rm -f $DEST_FOLDER/latest
+ ln -s $DEST $DEST_FOLDER/latest
fn_log_error "Exited with error code $RSYNC_EXIT_CODE"
exit $RSYNC_EXIT_CODE
fi