From 820c4dbcacf9517e87f0e3454616476ed7b4ec06 Mon Sep 17 00:00:00 2001 From: Spencer Gibb Date: Tue, 22 Mar 2016 12:45:59 -0600 Subject: [PATCH] Update mvnw to determine profile on mac and linux --- mvnw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mvnw b/mvnw index 29c32014..53c0d721 100755 --- a/mvnw +++ b/mvnw @@ -46,7 +46,7 @@ if [ -z "$MAVEN_SKIP_RC" ] ; then fi -VERSION=$(sed `dirname $0`/pom.xml -e '/\(.*\)<.*/\1/') +VERSION=$(awk '/ 0) {$0=$0} 1' `dirname $0`/pom.xml| grep '\(.*\)<.*/\1/') if echo $VERSION | egrep -q 'M|RC'; then echo Activating \"milestone\" profile for version=\"$VERSION\" echo $MAVEN_ARGS | grep -q milestone || MAVEN_ARGS="$MAVEN_ARGS -Pmilestone"