modrinth: rename input to MODRINTH_MODPACK (#2334)

This commit is contained in:
Geoff Bourne
2023-08-12 19:56:18 -05:00
committed by GitHub
parent 1cc0c8a0fc
commit 9eb1fbaf1f
6 changed files with 15 additions and 10 deletions

View File

@@ -6,15 +6,20 @@ set -eu
resultsFile=/data/.install-modrinth.env
requireVar MODRINTH_PROJECT
: "${MODRINTH_MODPACK:=${MODRINTH_PROJECT:-}}"
: "${MODRINTH_LOADER:=}"
: "${MODRINTH_VERSION:=${MODRINTH_VERSION_ID:-}}"
if [[ ! $MODRINTH_MODPACK ]]; then
log "ERROR: MODRINTH_MODPACK must be set when using TYPE/MOD_PLATFORM of MODRINTH"
exit 1
fi
isDebugging && set -x
args=(
--results-file="$resultsFile"
--project="${MODRINTH_PROJECT}"
--project="${MODRINTH_MODPACK}"
--output-directory=/data
)