autocf: add support for mods downloads repo (#2106)

This commit is contained in:
Geoff Bourne
2023-04-29 20:30:59 -05:00
committed by GitHub
parent 982f40e4b4
commit bad30b5022
5 changed files with 11 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ set -eu
: "${CF_FORCE_INCLUDE_MODS:=}"
: "${CF_SET_LEVEL_FROM:=}" # --set-level-from
: "${CF_OVERRIDES_SKIP_EXISTING:=false}" # --overrides-skip-existing
: "${CF_DOWNLOADS_REPO=$([ -d /downloads ] && echo '/downloads' || echo '')}"
resultsFile=/data/.install-curseforge.env
@@ -53,6 +53,9 @@ fi
if [[ $CF_EXCLUDE_INCLUDE_FILE ]]; then
args+=( --exclude-include-file="$CF_EXCLUDE_INCLUDE_FILE" )
fi
if [[ $CF_DOWNLOADS_REPO ]]; then
args+=( --downloads-repo="$CF_DOWNLOADS_REPO" )
fi
if ! mc-image-helper install-curseforge "${args[@]}"; then
log "ERROR failed to auto-install CurseForge modpack"