Spaces:
Paused
Paused
Update entrypoint.sh
Browse files43 unmodified lines44454647474849505152535455565758596061626349505152535455565758596065616263686465666743 unmodified linesfi
# ============================================# SKILLS SYNC: Import missing skills from GitHub# CONFIG SYNC: Sync $HOME/.config 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; then if [ -d "$SKILLS_TEMP/skills" ]; then rm -rf "$LOCAL_SKILLS" mkdir -p "$LOCAL_SKILLS" cp -r "$SKILLS_TEMP/skills"/. "$LOCAL_SKILLS/" echo '=== [SKILLS] Sync complete ===' else echo '=== [SKILLS] No skills/ folder found in repo (skipping) ===' fiecho '=== [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; then rm -rf "$HOME/.config" mkdir -p "$HOME/.config" cp -r "$CONFIG_TEMP"/. "$HOME/.config/" rm -rf "$HOME/.config/.git" echo '=== [CONFIG] Sync complete ==='else echo '=== [SKILLS] Git clone failed (skipping skills sync) ===' echo '=== [CONFIG] Git clone failed (skipping config sync) ==='fi
rm -rf "$SKILLS_TEMP"rm -rf "$CONFIG_TEMP"
# ============================================# STEP 2: START OPENCODE (with RAM watchdog)entrypoint.sh+14-18