Steve Losh  committed 9020faa Merge


  • Participants
  • Parent commits e207b5f, 57cb38f
  • Branches default

Comments (0)

Files changed (1)

File bundled/

 #!/usr/bin/env bash
+#Enforce variables must be set
+set -u
+#Check for dependencies on downloader programs
+which -s curl
+which -s wget
+#Enforce strict error checking for the rest of the script
+set -e
 cd bundled
-wget -O minecraft_server.jar
+if [ $WGET_INSTALLED -eq 0 ]; then
+    wget "$URL" -O minecraft_server.jar
+elif [ $CURL_INSTALLED -eq 0 ]; then
+    curl -o minecraft_server.jar "$URL"
+    echo "No downloader found. Please download the following file in your browser and move it to the 'clojurecraft/bundled' folder: $URL"
+    exit 1