Changed: Use egrep because grep syntax different under OS X

--HG--
branch : compatibility-develop
hg/compatibility-develop
kervala 9 years ago
parent 9059709265
commit e2c7127f84

@ -21,7 +21,7 @@ parse_version()
FILE=$2
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" ]
then

Loading…
Cancel
Save