Remove redundant CF_API_KEY_FILE handling (#4220)

This commit is contained in:
Andrew Barnes
2026-08-07 07:26:34 -05:00
committed by GitHub
parent 8bf8a7bc8d
commit 7ba5a858b9
2 changed files with 0 additions and 22 deletions
-11
View File
@@ -9,23 +9,12 @@ set -e -o pipefail
: "${PLUGINS_FILE:=}"
: "${REMOVE_OLD_MODS_DEPTH:=1} "
: "${REMOVE_OLD_MODS_INCLUDE:=*.jar,*-version.json}"
: "${CF_API_KEY_FILE:=}" # Path to file containing CurseForge API key
: "${CF_USE_HTTP2:=false}" # CF downloads are faster with HTTP 1.1
: "${MODRINTH_LOADER:=}"
# shellcheck source=start-utils
. "$(dirname "$0")/start-utils"
if [[ -n ${CF_API_KEY_FILE} ]]; then
if [[ -r "${CF_API_KEY_FILE}" ]]; then
CF_API_KEY="$(cat "${CF_API_KEY_FILE}")"
export CF_API_KEY
else
logError "CF_API_KEY_FILE is not readable: ${CF_API_KEY_FILE}"
exit 1
fi
fi
isDebugging && set -x
sum_file=/data/.generic_pack.sum