Badal commited on
Commit ·
9dfa504
1
Parent(s): a8abfdf
Fix: Continue if restore fails (empty bucket)
Browse files18 unmodified lines19202122232425262728293018 unmodified linesexport PATH="$OP_PATH:$PATH"# ============================================# STEP 1: RESTORE (MUST SUCCEED)# ============================================echo '=== [STEP 1] RESTORING DATA FROM BUCKET ==='hf sync "$BUCKET" "$SOURCE" \|| { echo 'CRITICAL: Restore failed! Exiting to prevent bucket wipe!'; exit 1; }echo '=== [STEP 1] RESTORE COMPLETE ==='# ============================================# STEP 2: START OPENCODE18 unmodified lines192021222324252627282930313218 unmodified linesexport PATH="$OP_PATH:$PATH"# ============================================# STEP 1: RESTORE (Try, but continue if bucket empty)# ============================================echo '=== [STEP 1] RESTORING DATA FROM BUCKET ==='if hf sync "$BUCKET" "$SOURCE" --delete 2>/dev/null; thenecho '=== [STEP 1] RESTORE COMPLETE ==='elseecho '=== [STEP 1] Restore skipped (bucket empty or failed - continuing anyway) ==='fi# ============================================# STEP 2: START OPENCODE
entrypoint.sh+6-4