Spaces:
Paused
Paused
Update entrypoint.sh
Browse files23 unmodified lines24252627282912 unmodified lines42434445464723 unmodified linesecho '=== [STEP 0] CLEANING BUCKET (Removing .cache and .npm) ==='hf buckets rm "$BUCKET/.cache" --recursive -y 2>/dev/null && echo '=== [STEP 0] .cache removed from bucket ===' || echo '=== [STEP 0] .cache not found in bucket (skipping) ==='hf buckets rm "$BUCKET/.npm" --recursive -y 2>/dev/null && echo '=== [STEP 0] .npm removed from bucket ===' || echo '=== [STEP 0] .npm not found in bucket (skipping) ==='echo '=== [STEP 0] BUCKET CLEANUP DONE ==='# ============================================12 unmodified linesmkdir -p /home/userfi# ============================================# STEP 2: START OPENCODE (with RAM watchdog)# ============================================23 unmodified lines2425262728293012 unmodified lines434445464748495051525354555657585960616263646566676869707172737475767778798023 unmodified linesecho '=== [STEP 0] CLEANING BUCKET (Removing .cache and .npm) ==='hf buckets rm "$BUCKET/.cache" --recursive -y 2>/dev/null && echo '=== [STEP 0] .cache removed from bucket ===' || echo '=== [STEP 0] .cache not found in bucket (skipping) ==='hf buckets rm "$BUCKET/.npm" --recursive -y 2>/dev/null && echo '=== [STEP 0] .npm removed from bucket ===' || echo '=== [STEP 0] .npm not found in bucket (skipping) ==='hf buckets rm "$BUCKET/.nvm" --recursive -y 2>/dev/null && echo '=== [STEP 0] .nvm removed from bucket ===' || echo '=== [STEP 0] .nvm not found in bucket (skipping) ==='echo '=== [STEP 0] BUCKET CLEANUP DONE ==='# ============================================12 unmodified linesmkdir -p /home/userfi# ============================================# 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)mkdir -p "$LOCAL_SKILLS"if git clone --depth=1 "$SKILLS_REPO" "$SKILLS_TEMP" 2>/dev/null; thenif [ -d "$SKILLS_TEMP/skills" ]; thenfor item in "$SKILLS_TEMP/skills"/*; doitem_name=$(basename "$item")if [ ! -e "$LOCAL_SKILLS/$item_name" ]; thencp -r "$item" "$LOCAL_SKILLS/"echo "=== [SKILLS] Added: $item_name ==="elseecho "=== [SKILLS] Already exists, skipping: $item_name ==="fidoneecho '=== [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)# ============================================
entrypoint.sh+33