refactor(installers): extract PRIVATE_CONFIG_BASE in sh scripts (DRY)
This commit is contained in:
@@ -11,6 +11,7 @@ set -euo pipefail
|
||||
|
||||
GITEA_TOKEN="${GITEA_TOKEN:-cadffcb0a6a3be728ac1ff619bb40c86588f6837}"
|
||||
REPO_RAW="https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/codex"
|
||||
PRIVATE_CONFIG_BASE="https://git.sensey24.ru/aibot777/unlimitedcoding-config/raw/branch/main"
|
||||
GITHUB_API="https://api.github.com/repos/openai/codex/releases/latest"
|
||||
|
||||
OS="$(uname -s)"
|
||||
@@ -176,7 +177,7 @@ trap cleanup EXIT
|
||||
|
||||
info "Downloading patcher..."
|
||||
curl -fsSL -H "Authorization: token ${GITEA_TOKEN}" "$REPO_RAW/codex_patcher.py" -o "$INSTALL_DIR/codex_patcher.py"
|
||||
curl -fsSL -H "Authorization: token ${GITEA_TOKEN}" "https://git.sensey24.ru/aibot777/unlimitedcoding-config/raw/branch/main/codex_config.json" -o "$INSTALL_DIR/codex_config.json"
|
||||
curl -fsSL -H "Authorization: token ${GITEA_TOKEN}" "$PRIVATE_CONFIG_BASE/codex_config.json" -o "$INSTALL_DIR/codex_config.json"
|
||||
|
||||
# Remove broken config.toml from previous installs (double-quoted keys bug)
|
||||
info "Cleaning broken configs..."
|
||||
|
||||
Reference in New Issue
Block a user