#!/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