Skip to content

Commit 7678f52

Browse files
authored
Fix logError call when using CF_API_KEY_FILE (#3818)
1 parent c1d5241 commit 7678f52

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

scripts/start-setupModpack

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ set -e -o pipefail
1111
: "${REMOVE_OLD_MODS_INCLUDE:=*.jar,*-version.json}"
1212
: "${CF_API_KEY_FILE:=}" # Path to file containing CurseForge API key
1313
: "${MODRINTH_LOADER:=}"
14-
sum_file=/data/.generic_pack.sum
14+
15+
# shellcheck source=start-utils
16+
. "$(dirname "$0")/start-utils"
17+
isDebugging && set -x
1518

1619
if [[ -n ${CF_API_KEY_FILE} ]]; then
1720
if [[ -r "${CF_API_KEY_FILE}" ]]; then
@@ -23,13 +26,7 @@ if [[ -n ${CF_API_KEY_FILE} ]]; then
2326
fi
2427
fi
2528

26-
# shellcheck source=start-utils
27-
. "$(dirname "$0")/start-utils"
28-
isDebugging && set -x
29-
30-
# CURSE_URL_BASE used in manifest downloads below
31-
CURSE_URL_BASE=${CURSE_URL_BASE:-https://minecraft.curseforge.com/projects}
32-
29+
sum_file=/data/.generic_pack.sum
3330
# Remove old mods/plugins
3431
if isTrue "${REMOVE_OLD_MODS}" && [ -z "${MODS_FILE}" ]; then
3532
removeOldMods "$MODS_OUT_DIR"

0 commit comments

Comments
 (0)