From 190e46c7850b4132f4bea98cbf5ef82e0338037a Mon Sep 17 00:00:00 2001 From: deajan <ozy@netpower.fr> Date: Tue, 20 Feb 2018 22:37:46 +0100 Subject: [PATCH] Added sex regex compat for MacOS --- dev/ofunctions.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev/ofunctions.sh b/dev/ofunctions.sh index dcdbc52..16be971 100644 --- a/dev/ofunctions.sh +++ b/dev/ofunctions.sh @@ -9,8 +9,8 @@ #done: SendMail and SendEmail convert functions inverted, check on osync and obackup #command line arguments don't take -AaqV for example -_OFUNCTIONS_VERSION=2.2.0-dev -_OFUNCTIONS_BUILD=2018013101 +_OFUNCTIONS_VERSION=2.3.0-dev +_OFUNCTIONS_BUILD=2018022001 #### _OFUNCTIONS_BOOTSTRAP SUBSET #### _OFUNCTIONS_BOOTSTRAP=true #### _OFUNCTIONS_BOOTSTRAP SUBSET END #### @@ -1985,10 +1985,12 @@ function InitLocalOSDependingSettings { # Tested on BSD and Mac STAT_CMD="stat -f \"%Sm\"" STAT_CTIME_MTIME_CMD="stat -f %N;%c;%m" + SED_REGEX_ARG="-E" else # Tested on GNU stat, busybox and Cygwin STAT_CMD="stat -c %y" STAT_CTIME_MTIME_CMD="stat -c %n;%Z;%Y" + SED_REGEX_ARG="-r" fi # Set compression first time when we know what local os we have