mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-02-27 19:36:24 +00:00
New logger with color and specific types. Code cleanup (#3108)
This commit is contained in:
@@ -20,15 +20,10 @@ elif [[ $PAPER_DOWNLOAD_URL ]]; then
|
||||
--output-directory=/data \
|
||||
--results-file="$resultsFile" \
|
||||
--url="$PAPER_DOWNLOAD_URL"; then
|
||||
log "ERROR: failed to download from custom PaperMC URL"
|
||||
logError "Failed to download from custom PaperMC URL"
|
||||
exit 1
|
||||
fi
|
||||
# grab SERVER and export it
|
||||
set -a
|
||||
# shellcheck disable=SC1090
|
||||
source "${resultsFile}"
|
||||
set +a
|
||||
|
||||
applyResultsFile ${resultsFile}
|
||||
else
|
||||
args=(
|
||||
--output-directory=/data
|
||||
@@ -41,15 +36,10 @@ else
|
||||
args+=(--build="$PAPER_BUILD")
|
||||
fi
|
||||
if ! mc-image-helper install-paper "${args[@]}"; then
|
||||
log "ERROR: failed to download $PAPER_PROJECT"
|
||||
logError "Failed to download $PAPER_PROJECT"
|
||||
exit 1
|
||||
fi
|
||||
# grab SERVER and export it
|
||||
set -a
|
||||
# shellcheck disable=SC1090
|
||||
source "${resultsFile}"
|
||||
set +a
|
||||
|
||||
applyResultsFile ${resultsFile}
|
||||
fi
|
||||
|
||||
# Download default configs to allow for consistent patching
|
||||
|
||||
Reference in New Issue
Block a user