diff --git a/start-deployBukkitSpigot b/start-deployBukkitSpigot index bad714d6..77e8d24b 100644 --- a/start-deployBukkitSpigot +++ b/start-deployBukkitSpigot @@ -72,8 +72,9 @@ function downloadSpigot { zarg="-z $SERVER" fi log "Downloading $match from $downloadUrl ..." - curl -fsSL -o $SERVER $zarg "$downloadUrl" - if [[ $? != 0 || $(grep -c "DOCTYPE html" $SERVER) != 0 ]]; then + tmpJar=/tmp/${getbukkitFlavor}.jar + curl -fsSL -o "$tmpJar" $zarg "$downloadUrl" + if [[ $? != 0 || $(grep -c "DOCTYPE html" $tmpJar) != 0 ]]; then cat <