From de383c9c0f0a2a3e9bdcfb47a5d9e0c631b25ad5 Mon Sep 17 00:00:00 2001 From: deajan Date: Mon, 20 May 2019 21:55:45 +0200 Subject: [PATCH] Removed unused code --- dev/n_osync.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dev/n_osync.sh b/dev/n_osync.sh index 5f441f8..dd6f53a 100644 --- a/dev/n_osync.sh +++ b/dev/n_osync.sh @@ -6,8 +6,8 @@ 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=2019052011 +PROGRAM_VERSION=1.3.0-beta2 +PROGRAM_BUILD=2019052012 IS_STABLE=false CONFIG_FILE_REVISION_REQUIRED=1.3.0 @@ -183,7 +183,6 @@ function CheckCurrentConfig { # v2 config will use true / false instead of yes / no # Check all variables that should contain "yes" or "no", true or false for i in "${booleans[@]}"; do - #test="if [ \"\$$i\" != \"yes\" ] && [ \"\$$i\" != \"no\" ] && [ \"\$$i\" != true ] && [ \"\$$i\" != false ]; then Logger \"Bogus $i value [\$$i] defined in config file. Correct your config file or update it using the update script if using and old version.\" \"CRITICAL\"; exit 1; fi" test="if [ \"\$$i\" != true ] && [ \"\$$i\" != false ]; then Logger \"Bogus $i value [\$$i] defined in config file. Correct your config file or update it using the update script if using and old version.\" \"CRITICAL\"; exit 1; fi" eval "$test" # Fix for upcomming v2 where yes and no do not exist anymore