fix: use -H Authorization header instead of ?token= in all install commands

Fixes curl "bad/illegal format" error on some systems when ?token= is in URL.
All 8 READMEs + uclaude_install.sh updated to download-then-run approach.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
delta-cloud-208e
2026-02-21 13:57:04 +00:00
parent 6755713ad7
commit 245710dfea
7 changed files with 38 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
# UClaude — one-line installer with full auto-install chain
# Usage: curl -fsSL 'https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh?token=GITEA_TOKEN' | sudo bash
# Usage: curl -fsSL -H "Authorization: token TOKEN" https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh -o /tmp/uclaude.sh && sudo bash /tmp/uclaude.sh
set -e
# Read-only access token for private repo (scoped: read:repository only)
@@ -32,7 +32,7 @@ install_pkg() {
need_sudo() {
if [ "$(id -u)" -ne 0 ]; then
echo " Root privileges required to install packages."
echo " Re-run with sudo: curl -fsSL 'https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh?token=${GITEA_TOKEN}' | sudo bash"
echo " Re-run with sudo: curl -fsSL -H 'Authorization: token ${GITEA_TOKEN}' https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/claude/uclaude_install.sh -o /tmp/uclaude.sh && sudo bash /tmp/uclaude.sh"
exit 1
fi
}