mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
Cleaned Up Code per itzg's suggestion
Replaced hardcoded spigot_server.jar with $SERVER and broke up the line to make it more readable.
This commit is contained in:
parent
a1ead0634e
commit
a195583990
@ -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"
|
||||
|
||||
;;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user