From a195583990aec1892c0ef268a0a740a8f3df9fd5 Mon Sep 17 00:00:00 2001 From: jtcressy Date: Wed, 16 Mar 2016 21:18:31 -0600 Subject: [PATCH] Cleaned Up Code per itzg's suggestion Replaced hardcoded spigot_server.jar with $SERVER and broke up the line to make it more readable. --- minecraft-server/start-minecraft.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/minecraft-server/start-minecraft.sh b/minecraft-server/start-minecraft.sh index 2848139f..e75114c6 100755 --- a/minecraft-server/start-minecraft.sh +++ b/minecraft-server/start-minecraft.sh @@ -63,7 +63,10 @@ case "$TYPE" in esac #attempt https, and if it fails, fallback to http and download that way. Display error if neither works. - wget -q -N spigot_server.jar https://getspigot.org$URL || (echo "Falling back to http, unable to contact server using https..." && wget -q -N spigot_server.jar http://getspigot.org$URL) || echo "Unable to download new copy of spigot server" + wget -q -N $SERVER https://getspigot.org$URL || \ + (echo "Falling back to http, unable to contact server using https..." && \ + wget -q -N $SERVER http://getspigot.org$URL) || \ + echo "Unable to download new copy of spigot server" ;;