From bd8fc2f043b2e6f51adeb376e368658762f9044d Mon Sep 17 00:00:00 2001 From: deajan Date: Mon, 20 May 2019 17:53:04 +0200 Subject: [PATCH] Rebuilt targets --- dev/debug_osync.sh | 9 +++++---- osync.sh | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/dev/debug_osync.sh b/dev/debug_osync.sh index 0137e32..a934e85 100755 --- a/dev/debug_osync.sh +++ b/dev/debug_osync.sh @@ -7,7 +7,7 @@ PROGRAM="osync" # Rsync based two way sync engine with fault tolerance AUTHOR="(C) 2013-2019 by Orsiris de Jong" CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr" PROGRAM_VERSION=1.3.0-pre-rc1 -PROGRAM_BUILD=2019052009 +PROGRAM_BUILD=2019052010 IS_STABLE=false CONFIG_FILE_REVISION_REQUIRED=1.3.0 @@ -5772,7 +5772,8 @@ function _SummaryFromRsyncFile { # grep -E "^<|^>|^\." = Remove all lines that do not begin with '<', '>' or '.' to deal with a bizarre bug involving rsync 3.0.6 / CentOS 6 and --skip-compress showing 'adding zip' line for every skipped compressed extension if echo "$file" | grep -E "^<|^>|^\." > /dev/null 2>&1; then # awk removes first part of line until space, then show all others - Logger "+ $direction $replicaPath$(echo $file | awk '{for (i=2; i>" ]; then TARGET_UPDATES_COUNT=$((TARGET_UPDATES_COUNT+1)) elif [ "$direction" == "<<" ]; then @@ -5781,10 +5782,10 @@ function _SummaryFromRsyncFile { fi if echo "$file" | grep -E "\*deleting" > /dev/null 2>&1; then if [ "$direction" == ">>" ]; then - Logger "- $direction $replicaPath$(echo $file | awk '{print $2}')" "ALWAYS" + Logger "- $direction $replicaPath$(echo "$file" | awk '{for (i=2; i|^\." = Remove all lines that do not begin with '<', '>' or '.' to deal with a bizarre bug involving rsync 3.0.6 / CentOS 6 and --skip-compress showing 'adding zip' line for every skipped compressed extension if echo "$file" | grep -E "^<|^>|^\." > /dev/null 2>&1; then # awk removes first part of line until space, then show all others - Logger "+ $direction $replicaPath$(echo $file | awk '{for (i=2; i>" ]; then TARGET_UPDATES_COUNT=$((TARGET_UPDATES_COUNT+1)) elif [ "$direction" == "<<" ]; then @@ -5546,10 +5547,10 @@ function _SummaryFromRsyncFile { fi if echo "$file" | grep -E "\*deleting" > /dev/null 2>&1; then if [ "$direction" == ">>" ]; then - Logger "- $direction $replicaPath$(echo $file | awk '{print $2}')" "ALWAYS" + Logger "- $direction $replicaPath$(echo "$file" | awk '{for (i=2; i