IFS=';'read -r -a pidArray <<<"$(evalecho\"\$WAIT_FOR_TASK_COMPLETION_${FUNCNAME[0]}\")"
initiatorFail=false
targetFail=false
for pid in "${pidArray[@]}";do
pid=${pid%:*}
if["$pid"=="$initiatorPid"];then
Logger "Failed to create initialization files for initiator.""ERROR"
elif["$pid"=="$targetPid"];then
Logger "Failed to create initialization files for target.""ERROR"
fi
done
exit1
resumeTarget="${SYNC_ACTION[8]}"
fi
}
###### Sync function in 9 steps
######
###### Step 0a & 0b: Create current file list of replicas
@ -2474,6 +2505,7 @@ function Usage {
echo"--force-unlock Will override any existing active or dead locks on initiator and target replica"
echo"--on-changes Will launch a sync task after a short wait period if there is some file activity on initiator replica. You should try daemon mode instead"
echo"--no-resume Do not try to resume a failed run. By default, execution is resumed once"
echo"--initialize Create file lists without actually synchronizing anything, this will help setup deletion detections before the first run"
echo""
echo"[QUICKSYNC OPTIONS]"
@ -2587,7 +2619,7 @@ sync_on_changes=false
_NOLOCKS=false
osync_cmd=$0
_SUMMARY=false
INITIALIZE="no"
function GetCommandlineArguments {
localisFirstArgument=true
@ -2685,6 +2717,10 @@ function GetCommandlineArguments {