- uclaude_updater.py — auto-detect version, install cli.js, patch settings - uclaude_update.sh/bat/ps1 — platform wrappers (git pull + run updater) - patcher.config.json — shared API config - Updated README with full usage instructions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
19 lines
467 B
Bash
Executable File
19 lines
467 B
Bash
Executable File
#!/bin/bash
|
|
# UClaude Updater — automatic Claude Code patch updater
|
|
# Usage: sudo bash uclaude_update.sh [--check] [--force] [--settings-only]
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
cd "$SCRIPT_DIR"
|
|
|
|
# Pull latest artifacts
|
|
git pull --quiet 2>/dev/null || true
|
|
|
|
# Run updater
|
|
if [ "$(id -u)" -eq 0 ]; then
|
|
python3 uclaude_updater.py "$@"
|
|
else
|
|
echo "Root privileges required. Re-running with sudo..."
|
|
sudo python3 uclaude_updater.py "$@"
|
|
fi
|