Spaces:
Paused
Paused
Update entrypoint.sh
Browse files43 unmodified lines4445464748495051525354555657585960616263646566676869707143 unmodified linesfi# ============================================# SKILLS SYNC: Import missing skills from GitHub# ============================================echo '=== [SKILLS] Syncing OpenCode skills from GitHub ==='SKILLS_REPO='https://github.com/badman99dev/Opencode-config'LOCAL_SKILLS="$HOME/.config/opencode/skills"SKILLS_TEMP=$(mktemp -d)if git clone --depth=1 "$SKILLS_REPO" "$SKILLS_TEMP" 2>/dev/null; thenif [ -d "$SKILLS_TEMP/skills" ]; thenrm -rf "$LOCAL_SKILLS"mkdir -p "$LOCAL_SKILLS"cp -r "$SKILLS_TEMP/skills"/. "$LOCAL_SKILLS/"echo '=== [SKILLS] Sync complete ==='elseecho '=== [SKILLS] No skills/ folder found in repo (skipping) ==='fielseecho '=== [SKILLS] Git clone failed (skipping skills sync) ==='firm -rf "$SKILLS_TEMP"# ============================================# STEP 2: START OPENCODE (with RAM watchdog)43 unmodified lines44454647484950515253545556575859606162636465666743 unmodified linesfi# ============================================# CONFIG SYNC: Sync $HOME/.config from GitHub# ============================================echo '=== [CONFIG] Syncing $HOME/.config from GitHub ==='CONFIG_REPO='https://github.com/badman99dev/Opencode-config'CONFIG_TEMP=$(mktemp -d)if git clone --depth=1 "$CONFIG_REPO" "$CONFIG_TEMP" 2>/dev/null; thenrm -rf "$HOME/.config"mkdir -p "$HOME/.config"cp -r "$CONFIG_TEMP"/. "$HOME/.config/"rm -rf "$HOME/.config/.git"echo '=== [CONFIG] Sync complete ==='elseecho '=== [CONFIG] Git clone failed (skipping config sync) ==='firm -rf "$CONFIG_TEMP"# ============================================# STEP 2: START OPENCODE (with RAM watchdog)
entrypoint.sh+14-18