Spaces:
Paused
Paused
Update entrypoint.sh
Browse files23 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 lines mkdir -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; then if [ -d "$SKILLS_TEMP/skills" ]; then for item in "$SKILLS_TEMP/skills"/*; do item_name=$(basename "$item") if [ ! -e "$LOCAL_SKILLS/$item_name" ]; then cp -r "$item" "$LOCAL_SKILLS/" echo "=== [SKILLS] Added: $item_name ===" else echo "=== [SKILLS] Already exists, skipping: $item_name ===" fi done echo '=== [SKILLS] Sync complete ===' else echo '=== [SKILLS] No skills/ folder found in repo (skipping) ===' fielse echo '=== [SKILLS] Git clone failed (skipping skills sync) ==='fi
rm -rf "$SKILLS_TEMP"
# ============================================# STEP 2: START OPENCODE (with RAM watchdog)# ============================================entrypoint.sh+33