From 9aaaed39c23e6f12511968933d171c5777c35f0c Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Thu, 7 May 2020 21:24:00 -0400 Subject: [PATCH] Fix curl use under cygwin and possibly other curl scenarios. --- update-minetest-linux64.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/update-minetest-linux64.sh b/update-minetest-linux64.sh index 678a2c2..51259f7 100755 --- a/update-minetest-linux64.sh +++ b/update-minetest-linux64.sh @@ -28,6 +28,10 @@ else fi MT_BASH_RC_URL=https://raw.githubusercontent.com/poikilos/EnlivenMinetest/master/$MT_BASH_RC_NAME curl $MT_BASH_RC_URL -o "$MT_BASH_RC_PATH" + if [ $? -ne 0 ]; then + # This is necessary on cygwin for some reason. + curl $MT_BASH_RC_URL > "$MT_BASH_RC_PATH" + fi if [ $? -ne 0 ]; then echo echo "ERROR: Downloading $MT_BASH_RC_URL to $MT_BASH_RC_PATH failed."