From e3574edc5da2edf762faf243889ca7bfef7a6760 Mon Sep 17 00:00:00 2001 From: ThatGamerBlue Date: Thu, 9 Apr 2020 15:05:21 +0100 Subject: [PATCH] scripts: fix buildtools script under windows git bash (#3145) wget is nonfunctional in git bash for windows, so we should use curl instead (no matter what you pass to wget it fails with the same error) https://i.imgur.com/YDw68vM.png --- scripts/buildtools.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/buildtools.sh b/scripts/buildtools.sh index 87411a6c6..a7e454363 100755 --- a/scripts/buildtools.sh +++ b/scripts/buildtools.sh @@ -10,7 +10,7 @@ is_installed() { ensure_buildtools() { if [ ! -f "BuildTools.jar" ]; then echo "Downloading BuildTools..." - if [[ "$OSTYPE" == "darwin"* ]]; then + if [[ "$OSTYPE" == "darwin"* ]] || [[ "$OSTYPE" == "msys"* ]]; then curl https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar -o BuildTools.jar else wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar