Fix: remove state_merged.db before git pull to avoid conflicts
This commit is contained in:
5
sync.sh
5
sync.sh
@@ -8,6 +8,11 @@ cd "$SYNC_DIR"
|
||||
|
||||
echo "[$(date '+%H:%M:%S')] Sync from $HOSTNAME..."
|
||||
|
||||
# ── Step 0: Clean local state_merged.db to avoid git pull conflicts ──────
|
||||
# The merged db is produced by this script, not tracked, and can conflict
|
||||
# with remote when pulling. Remove it before fetch+merge.
|
||||
rm -f "$SYNC_DIR/state_merged.db"
|
||||
|
||||
# ── Step 1: Export local state.db (via temp dir to avoid lock) ────────────
|
||||
python3 << PYEOF
|
||||
import sqlite3, os, shutil, tempfile
|
||||
|
||||
Reference in New Issue
Block a user