Fixes issue with incorrectly detecting if backup is already running if interrupted

This commit is contained in:
Brandon Dusseau
2016-03-19 00:27:51 -04:00
parent 7585aae16c
commit e8e0806823
+1 -1
View File
@@ -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