diff --git a/dev/n_osync.sh b/dev/n_osync.sh index 3dac0e5..c010ead 100755 --- a/dev/n_osync.sh +++ b/dev/n_osync.sh @@ -4,7 +4,7 @@ PROGRAM="osync" # Rsync based two way sync engine with fault tolerance AUTHOR="(C) 2013-2016 by Orsiris de Jong" CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr" PROGRAM_VERSION=1.2-beta2 -PROGRAM_BUILD=2016111001 +PROGRAM_BUILD=2016111002 IS_STABLE=no # Execution order #__WITH_PARANOIA_DEBUG @@ -2105,8 +2105,8 @@ opts="${opts# *}" else LOG_FILE="$LOGFILE" fi - if [ ! -w "$(dirname LOG_FILE)" ]; then - echo "Cannot write to log [$(dirname LOG_FILE)]." + if [ ! -w "$(dirname $LOG_FILE)" ]; then + echo "Cannot write to log [$(dirname $LOG_FILE)]." else Logger "Script begin, logging to [$LOG_FILE]." "DEBUG" fi