From 6d083ed31d9896f093caa85220d1495f645bb129 Mon Sep 17 00:00:00 2001 From: Jule Marcoueille Date: Thu, 8 Nov 2018 22:23:27 +0100 Subject: [PATCH] Fix pattern matching for osx. --- test/plugin-add.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/plugin-add.sh b/test/plugin-add.sh index e89079e40..ca0451235 100644 --- a/test/plugin-add.sh +++ b/test/plugin-add.sh @@ -10,7 +10,7 @@ PLUGIN=$4 FOLDER=".build-$PLATFORM" cd $FOLDER -CORDOVA_MAJOR_VERSION=`expr "$CORDOVA_VERSION" : '\\~\?\\^\?\([[:digit:]]\+\)'` +CORDOVA_MAJOR_VERSION=`echo "$CORDOVA_VERSION" | sed -E "s/\~?\^?([[:digit:]]).*/\1/"` if [[ "$CORDOVA_MAJOR_VERSION" == "6" ]]; then FETCH_COMMAND="--fetch"