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"