Use of bashisms make this script fail in minimal /bin/sh implementations like dash

This commit is contained in:
Romain Pelisse 2017-04-11 16:57:11 +02:00 committed by rfscholte
parent 1f66af513f
commit 2ffb15c84a
1 changed files with 7 additions and 1 deletions

8
maven-wrapper/mvnw vendored
View File

@ -196,7 +196,13 @@ if [ -z "$BASE_DIR" ]; then
exit 1;
fi
export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
# Workaround for JBEAP-8937 (do not change, it may break on Solaris)
if [ -z "${MAVEN_PROJECTBASEDIR}" ]; then
export MAVEN_PROJECTBASEDIR=`find_maven_basedir`
fi
# End of fix
echo $MAVEN_PROJECTBASEDIR
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"