#!/usr/bin/env bash # Bootstrap auth-runtime into the skill store. # Run this ONCE before installing any skills. # # Usage: # curl -fsSL https://your-forgejo/raw/auth-runtime/main/install.sh | bash # # or: # ./install.sh [skill-store-dir] set -euo pipefail STORE="${1:-$HOME/.openclaw/skills}" DEST="$STORE/_shared/auth-runtime" REPO="${AUTH_RUNTIME_REPO:-}" # set via env or hardcode below # Hardcode your Forgejo URL here: # REPO="https://git.yourserver.com/you/auth-runtime.git" if [[ -z "$REPO" ]]; then echo "Error: set AUTH_RUNTIME_REPO=https://git.yourserver.com/you/auth-runtime.git" exit 1 fi if [[ -d "$DEST/.git" ]]; then echo "Updating auth-runtime..." git -C "$DEST" pull --ff-only else echo "Installing auth-runtime to $DEST..." mkdir -p "$STORE/_shared" git clone "$REPO" "$DEST" fi echo "auth-runtime ready at $DEST"