mirror of
https://github.com/itzg/docker-minecraft-server
synced 2025-03-04 15:17:17 +00:00
Revert "Improved handling of bad spigot/bukkit downloads via temp file For #655"
This reverts commit e56a74dc
This commit is contained in:
parent
e56a74dc81
commit
4099cde737
1 changed files with 2 additions and 4 deletions
|
@ -72,9 +72,8 @@ function downloadSpigot {
|
|||
zarg="-z $SERVER"
|
||||
fi
|
||||
log "Downloading $match from $downloadUrl ..."
|
||||
tmpJar=/tmp/${getbukkitFlavor}.jar
|
||||
curl -fsSL -o "$tmpJar" $zarg "$downloadUrl"
|
||||
if [[ $? != 0 || $(grep -c "DOCTYPE html" $tmpJar) != 0 ]]; then
|
||||
curl -fsSL -o $SERVER $zarg "$downloadUrl"
|
||||
if [[ $? != 0 || $(grep -c "DOCTYPE html" $SERVER) != 0 ]]; then
|
||||
cat <<EOF
|
||||
|
||||
ERROR: failed to download from $downloadUrl
|
||||
|
@ -84,7 +83,6 @@ ERROR: failed to download from $downloadUrl
|
|||
EOF
|
||||
exit 3
|
||||
fi
|
||||
mv "$tmpJar" "$SERVER"
|
||||
|
||||
JVM_OPTS="${JVM_OPTS} -DIReallyKnowWhatIAmDoingISwear"
|
||||
export JVM_OPTS
|
||||
|
|
Loading…
Add table
Reference in a new issue