mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-06 08:49:22 +00:00
Successful spigot/bukkit update check caused grep to fail (#2726)
This commit is contained in:
1 parent
35daf1441a
commit
938b562d21
2 files changed
+4
-8
No files matched your search
@@ -1,11 +1,5 @@
|
|||||||
# Bukkit/Spigot
|
# Bukkit/Spigot
|
||||||
|
|
||||||
!!! warning
|
|
||||||
|
|
||||||
The download provider for Bukkit/Spigot, GetBukkit, is no longer operational. It is recommended that users switch to [Paper](paper.md) instead.
|
|
||||||
|
|
||||||
This image still provides an option to build Bukkit/Spigot from source if Paper is not feasible.
|
|
||||||
|
|
||||||
Run a Bukkit/Spigot server type by setting the environment variable `TYPE` to "BUKKIT" or "SPIGOT".
|
Run a Bukkit/Spigot server type by setting the environment variable `TYPE` to "BUKKIT" or "SPIGOT".
|
||||||
|
|
||||||
!!! example
|
!!! example
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ function downloadSpigot {
|
|||||||
tempFile="$SERVER.$$"
|
tempFile="$SERVER.$$"
|
||||||
|
|
||||||
# HTTP error or download site responded with an HTML error page
|
# HTTP error or download site responded with an HTML error page
|
||||||
if ! curl -fsSL -o "$tempFile" "${curlArgs[@]}" "$downloadUrl" || grep -iq "doctype html" "$tempFile"; then
|
if ! curl -fsSL -o "$tempFile" "${curlArgs[@]}" "$downloadUrl" || ( [ -f "$tempFile" ] && grep -iq "doctype html" "$tempFile" ); then
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
|
||||||
@@ -113,7 +113,9 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
mv "$tempFile" "$SERVER"
|
if [ -f "$tempFile" ]; then
|
||||||
|
mv "$tempFile" "$SERVER"
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user