Badal commited on
Commit
80c440d
·
1 Parent(s): 07d5099

Optimize: Bucket already clean - no cache restore needed

Browse files
Files changed (1) hide show
  1. entrypoint.sh +1 -10
entrypoint.sh CHANGED
@@ -19,16 +19,7 @@ OP_PATH=$(find / -name opencode -type f -printf '%h' -quit 2>/dev/null)
19
  export PATH="$OP_PATH:$PATH"
20
 
21
  # ============================================
22
- # STEP 0: CLEANUP CACHE BEFORE RESTORE (Speed up)
23
- # ============================================
24
- echo '=== [STEP 0] CLEANING CACHE FOLDERS ==='
25
- rm -rf /data/.cache 2>/dev/null
26
- rm -rf /data/.npm 2>/dev/null
27
- rm -rf /data/.bun 2>/dev/null
28
- echo '=== [STEP 0] CLEANUP DONE ==='
29
-
30
- # ============================================
31
- # STEP 1: RESTORE (Try, but continue if bucket empty)
32
  # ============================================
33
  echo '=== [STEP 1] RESTORING DATA FROM BUCKET ==='
34
  if hf sync "$BUCKET" "$SOURCE" --delete 2>/dev/null; then
 
19
  export PATH="$OP_PATH:$PATH"
20
 
21
  # ============================================
22
+ # STEP 1: RESTORE (Bucket is already clean - no .cache/.npm)
 
 
 
 
 
 
 
 
 
23
  # ============================================
24
  echo '=== [STEP 1] RESTORING DATA FROM BUCKET ==='
25
  if hf sync "$BUCKET" "$SOURCE" --delete 2>/dev/null; then