fix: add auth headers to all Linux .sh gitea downloads
- gemini/ugemini_install.sh: CURL_AUTH was defined but never used, fixed - gemini/ugemini_update.sh: added GITEA_TOKEN + auth header - qwen/uqwen_install.sh: use GITEA_TOKEN (was already defined but unused) - qwen/uqwen_update.sh: added GITEA_TOKEN + auth header Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -137,11 +137,8 @@ cleanup() { rm -rf "$INSTALL_DIR" 2>/dev/null || true; }
|
||||
trap cleanup EXIT
|
||||
|
||||
info "Downloading patcher..."
|
||||
CURL_AUTH=""
|
||||
[ -n "$GITEA_TOKEN" ] && CURL_AUTH="-H \"Authorization: token ${GITEA_TOKEN}\""
|
||||
|
||||
curl -fsSL "$REPO_RAW/gemini_patcher.py" -o "$INSTALL_DIR/gemini_patcher.py"
|
||||
curl -fsSL "$REPO_RAW/gemini_config.json" -o "$INSTALL_DIR/gemini_config.json"
|
||||
curl -fsSL -H "Authorization: token ${GITEA_TOKEN}" "$REPO_RAW/gemini_patcher.py" -o "$INSTALL_DIR/gemini_patcher.py"
|
||||
curl -fsSL -H "Authorization: token ${GITEA_TOKEN}" "$REPO_RAW/gemini_config.json" -o "$INSTALL_DIR/gemini_config.json"
|
||||
log "Patcher downloaded"
|
||||
|
||||
info "Applying patches..."
|
||||
|
||||
Reference in New Issue
Block a user