bk939448 commited on
Commit
b50dcbf
·
verified ·
1 Parent(s): a5fd804

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +4 -3
entrypoint.sh CHANGED
@@ -22,7 +22,8 @@ export PATH="$OP_PATH:$PATH"
22
  # STEP 1: RESTORE (Try, but continue if bucket empty)
23
  # ============================================
24
  echo '=== [STEP 1] RESTORING DATA FROM BUCKET ==='
25
- if hf sync "$BUCKET" "$SOURCE" --delete --exclude ".npm/*" --exclude ".cache/*" 2>/dev/null; then
 
26
  echo '=== [STEP 1] RESTORE COMPLETE ==='
27
  else
28
  echo '=== [STEP 1] Restore skipped (bucket empty or failed - continuing anyway) ==='
@@ -49,6 +50,6 @@ while true; do
49
  exit 1
50
  fi
51
 
52
- # Real-time continuous sync with exclusions
53
- hf sync "$SOURCE" "$BUCKET" --delete --exclude ".npm/*" --exclude ".cache/*"
54
  done
 
22
  # STEP 1: RESTORE (Try, but continue if bucket empty)
23
  # ============================================
24
  echo '=== [STEP 1] RESTORING DATA FROM BUCKET ==='
25
+ # यहाँ --exclude को बिना /* के इस्तेमाल किया है
26
+ if hf sync "$BUCKET" "$SOURCE" --delete --exclude ".npm/" --exclude ".cache/" 2>/dev/null; then
27
  echo '=== [STEP 1] RESTORE COMPLETE ==='
28
  else
29
  echo '=== [STEP 1] Restore skipped (bucket empty or failed - continuing anyway) ==='
 
50
  exit 1
51
  fi
52
 
53
+ # Real-time continuous sync with direct folder exclusion
54
+ hf sync "$SOURCE" "$BUCKET" --delete --exclude ".npm/" --exclude ".cache/"
55
  done