From e87389bb45cec8bc913cac66518d37fd036b83a3 Mon Sep 17 00:00:00 2001 From: Spencer Gibb Date: Tue, 22 Mar 2016 12:39:27 -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 29c320147..53c0d7219 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"