Badal commited on
Commit ·
9dfa504
1
Parent(s): a8abfdf
Fix: Continue if restore fails (empty bucket)
Browse files18 unmodified lines19202122222324252627252627282930313218 unmodified linesexport PATH="$OP_PATH:$PATH"
# ============================================# STEP 1: RESTORE (MUST SUCCEED)# STEP 1: RESTORE (Try, but continue if bucket empty)# ============================================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 ==='if hf sync "$BUCKET" "$SOURCE" --delete 2>/dev/null; then echo '=== [STEP 1] RESTORE COMPLETE ==='else echo '=== [STEP 1] Restore skipped (bucket empty or failed - continuing anyway) ==='fi
# ============================================# STEP 2: START OPENCODEentrypoint.sh+6-4