Skip to content

Commit 938b562

Browse files
authored
Successful spigot/bukkit update check caused grep to fail (#2726)
1 parent 35daf14 commit 938b562

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

docs/types-and-platforms/server-types/bukkit-spigot.md

-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# Bukkit/Spigot
22

3-
!!! warning
4-
5-
The download provider for Bukkit/Spigot, GetBukkit, is no longer operational. It is recommended that users switch to [Paper](paper.md) instead.
6-
7-
This image still provides an option to build Bukkit/Spigot from source if Paper is not feasible.
8-
93
Run a Bukkit/Spigot server type by setting the environment variable `TYPE` to "BUKKIT" or "SPIGOT".
104

115
!!! example

scripts/start-deployBukkitSpigot

+4-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function downloadSpigot {
8989
tempFile="$SERVER.$$"
9090

9191
# HTTP error or download site responded with an HTML error page
92-
if ! curl -fsSL -o "$tempFile" "${curlArgs[@]}" "$downloadUrl" || grep -iq "doctype html" "$tempFile"; then
92+
if ! curl -fsSL -o "$tempFile" "${curlArgs[@]}" "$downloadUrl" || ( [ -f "$tempFile" ] && grep -iq "doctype html" "$tempFile" ); then
9393

9494
cat <<EOF
9595
@@ -113,7 +113,9 @@ EOF
113113
fi
114114

115115
else
116-
mv "$tempFile" "$SERVER"
116+
if [ -f "$tempFile" ]; then
117+
mv "$tempFile" "$SERVER"
118+
fi
117119

118120
fi
119121

0 commit comments

Comments
 (0)