summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Cozic <laurent@pogopixels.com>2016-03-22 15:44:49 +0100
committerLaurent Cozic <laurent@pogopixels.com>2016-03-22 15:44:49 +0100
commitded89f98d60aa9ec229a5aa8d80c0042ec92b35a (patch)
tree81b999aff27e446d75bf7bf3a4de461e3d85c9f6
parent7585aae16c1beb7356363701c9ec0165779dd8bc (diff)
parente8e0806823fe13a1c942743b8662c753612c114c (diff)
Merge pull request #47 from BrandonDusseau/master
Fixes issue with incorrectly detecting if backup is already running if interrupted
-rwxr-xr-xrsync_tmbackup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsync_tmbackup.sh b/rsync_tmbackup.sh
index 2d67694..8991a84 100755
--- a/rsync_tmbackup.sh
+++ b/rsync_tmbackup.sh
@@ -191,7 +191,7 @@ if [ -n "$(fn_find "$INPROGRESS_FILE")" ]; then
fn_log_warn "Cygwin only: Previous backup task has either been interrupted or it might still be active, but there is currently no check for this. Assuming that the task was simply interrupted."
else
RUNNINGPID="$(fn_run_cmd "cat $INPROGRESS_FILE")"
- if [ "$RUNNINGPID"="$(pgrep "$APPNAME")" ]; then
+ if [ "$RUNNINGPID" = "$(pgrep "$APPNAME")" ]; then
fn_log_error "Previous backup task is still active - aborting."
exit 1
fi