Badal commited on
Commit ·
07d5099
1
Parent(s): ac644e7
Optimize: Clean cache folders before restore
Browse files17 unmodified lines18192021222317 unmodified linesOP_PATH=$(find / -name opencode -type f -printf '%h' -quit 2>/dev/null)export PATH="$OP_PATH:$PATH"# ============================================# STEP 1: RESTORE (Try, but continue if bucket empty)# ============================================17 unmodified lines18192021222324252627282930313217 unmodified linesOP_PATH=$(find / -name opencode -type f -printf '%h' -quit 2>/dev/null)export PATH="$OP_PATH:$PATH"# ============================================# STEP 0: CLEANUP CACHE BEFORE RESTORE (Speed up)# ============================================echo '=== [STEP 0] CLEANING CACHE FOLDERS ==='rm -rf /data/.cache 2>/dev/nullrm -rf /data/.npm 2>/dev/nullrm -rf /data/.bun 2>/dev/nullecho '=== [STEP 0] CLEANUP DONE ==='# ============================================# STEP 1: RESTORE (Try, but continue if bucket empty)# ============================================
entrypoint.sh+9