From 22af510375e79a4e8537d8243a56be328783254b Mon Sep 17 00:00:00 2001 From: deajan Date: Tue, 21 May 2019 00:08:19 +0200 Subject: [PATCH] Fixed _QUICK_SYNC value too high --- dev/n_osync.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dev/n_osync.sh b/dev/n_osync.sh index 4dec1d9..93293fd 100644 --- a/dev/n_osync.sh +++ b/dev/n_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-beta2 -PROGRAM_BUILD=2019052016 +PROGRAM_BUILD=2019052101 IS_STABLE=false CONFIG_FILE_REVISION_REQUIRED=1.3.0 @@ -3109,6 +3109,11 @@ function GetCommandlineArguments { # Remove leading space if there is one opts="${opts# *}" + + # Fix when reloading GetCommandlineArguments + if [ $_QUICK_SYNC -gt 2 ]; then + _QUICK_SYNC=2 + fi } GetCommandlineArguments "${@}" @@ -3168,7 +3173,7 @@ else exit 1 fi -# Reload GetCommandLineArguments so we can override config file with run time arguments +# Reload GetCommandlineArguments so we can override config file with run time arguments GetCommandlineArguments "${@}" if [ "$LOGFILE" == "" ]; then