Changed: Use egrep because grep syntax different under OS X

This commit is contained in:
kervala 2016-01-20 13:50:46 +01:00
parent de0cb9fd2e
commit 546bf3c7a1

View file

@ -21,7 +21,7 @@ parse_version()
FILE=$2 FILE=$2
VAR=$3 VAR=$3
V=$(grep -o -P $PREFIX"_$VAR [0-9]+" $FILE | awk '{print $2}' | head -n 1) V=$(egrep -o $PREFIX"_$VAR [0-9]+" $FILE | awk '{print $2}' | head -n 1)
if [ -z "$V" ] if [ -z "$V" ]
then then