From 0c679903afba716726bbf3040f697622985d653b Mon Sep 17 00:00:00 2001 From: David Arthur Date: Wed, 13 Nov 2013 15:52:24 -0500 Subject: [PATCH] Fixed Brain fart --- rsync_tmbackup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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