Improved naming of FORGE_FORCE_REINSTALL and FORGE_VERSION (#1788)

This commit is contained in:
Geoff Bourne
2022-10-16 17:49:25 -05:00
committed by GitHub
parent 2e69966a6a
commit c1d8dc9bb0
7 changed files with 16 additions and 14 deletions

View File

@@ -1,6 +1,7 @@
#!/bin/bash
: "${FORGEVERSION:=RECOMMENDED}"
: "${FORGE_VERSION:=${FORGEVERSION:-RECOMMENDED}}"
: "${FORGE_FORCE_REINSTALL:=false}}"
# shellcheck source=start-utils
. "${SCRIPTS:-$(dirname "$0")}/start-utils"
@@ -10,8 +11,8 @@ if ! mc-image-helper install-forge \
--output-directory=/data \
--results-file=/data/.run-forge.env \
--minecraft-version="${VANILLA_VERSION}" \
--forge-version="${FORGEVERSION}" \
--force-reinstall="${FORCE_REINSTALL:-false}"; then
--forge-version="${FORGE_VERSION}" \
--force-reinstall="${FORGE_FORCE_REINSTALL}"; then
log "ERROR failed to install forge"
exit 1
fi