mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6123: Ensuring no color in grep output
This commit is contained in:
parent
2b1b4352bc
commit
9f72443bb1
|
|
@ -40,7 +40,7 @@ if [ -n "$1" ] ; then
|
|||
fi
|
||||
|
||||
|
||||
VERSION=`(cd ../../; mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version) | grep '^[0-9]\.'`
|
||||
VERSION=`(cd ../../; mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version) | grep --color=none '^[0-9]\.'`
|
||||
if echo $VERSION | grep SNAPSHOT ; then
|
||||
REALVER=`echo $VERSION | cut -d '-' -f 1`
|
||||
DEFVER="-D_ver $REALVER"
|
||||
|
|
|
|||
Loading…
Reference in New Issue