Fixed log for existing spiget resource

#981
This commit is contained in:
Geoff Bourne 2021-07-17 17:57:15 -05:00
parent 37b81aa0be
commit 5018298c81
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,17 @@
version: "3"
services:
mc:
# Only using IMAGE variable to allow for local testing
image: ${IMAGE:-itzg/minecraft-server}
ports:
- 25565:25565
environment:
EULA: "TRUE"
TYPE: SPIGOT
SPIGET_RESOURCES: 9089,34315,3836
volumes:
- data:/data
volumes:
data: {}

View File

@ -29,7 +29,7 @@ getResourceFromSpiget() {
mkdir -p /data/plugins
if [ -f /data/plugins/.${resource} ]; then
log "Resource '${$resource}' already downloaded"
log "Resource '${resource}' already downloaded"
else
tmpfile="/tmp/${resource}.zip"
url="https://api.spiget.org/v2/resources/${resource}/download"