- 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 50dcbb3bf0
commit 87f298313c
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" echo "Found .mvn/wrapper/maven-wrapper.jar"
else else
echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." 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" echo "Found wget ... using wget"
wget output-document=.mvn/wrapper/maven-wrapper.jar "$JAR_URL" 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" echo "Found curl ... using curl"
curl -o .mvn/wrapper/maven-wrapper.jar "$JAR_URL" curl -o .mvn/wrapper/maven-wrapper.jar "$JAR_URL"
else else