- Changed the curl and wget detection to the "possix way" using "command"

This commit is contained in:
Christofer Dutz 2017-07-18 11:10:15 +02:00 committed by rfscholte
parent 7ffeb1f5e1
commit 1fd63e5aea
1 changed files with 2 additions and 2 deletions

4
maven-wrapper/mvnw vendored
View File

@ -209,10 +209,10 @@ if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
echo "Found .mvn/wrapper/maven-wrapper.jar"
else
echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
if which wget >/dev/null; then
if command -v wget > /dev/null; then
echo "Found wget ... using wget"
wget output-document=.mvn/wrapper/maven-wrapper.jar "$JAR_URL"
elif which curl >/dev/null; then
elif command -v curl > /dev/null; then
echo "Found curl ... using curl"
curl -o .mvn/wrapper/maven-wrapper.jar "$JAR_URL"
else