Quick and dirty, blow it away if it's a blank save

This commit is contained in:
2026-02-28 01:06:43 -06:00
parent 6e47a332b5
commit 57f39de3d4
2 changed files with 2 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
ENDPOINT="https://git.sassysalamander.net/wytch/recalbox-savesync/archive/main.tar.gz"
cd /recalbox/share/system
curl -L -o savesync.tar.gz "$ENDPOINT" >/dev/null
curl -L -o savesync.tar.gz "$ENDPOINT" 2>/dev/null
tar -xvf savesync.tar.gz >/dev/null
rm savesync.tar.gz

View File

@@ -45,6 +45,7 @@ echo "$event_data" | while IFS='=' read -r k v; do
log "INFO" "Sync START: $(basename "$gp")"
remote_f="$REMOTE_BASE/$sid/$(basename "$sp")"
#log "DEBUG" "rclone update $remote_f $sp"
find "$sp" -size -256 -delete
rclone update "$remote_f" "$sp"
log "INFO" "Start sync done"
elif [ "$st" = "endgame" ]; then