From 87f298313c08f26239ee8184ae0e0f48d446f9f0 Mon Sep 17 00:00:00 2001 From: Christofer Dutz Date: Tue, 18 Jul 2017 11:10:15 +0200 Subject: [PATCH] - Changed the curl and wget detection to the "possix way" using "command" --- maven-wrapper/mvnw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maven-wrapper/mvnw b/maven-wrapper/mvnw index b8464e939f..82fe04cd4a 100755 --- a/maven-wrapper/mvnw +++ b/maven-wrapper/mvnw @@ -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