fixed logging hopefully?

This commit is contained in:
2026-02-27 22:35:38 -06:00
parent b9ea45eafb
commit 2952bd6c33

View File

@@ -1,9 +1,9 @@
#!/bin/ash
# shellcheck shell=dash
. /recalbox/share/system/configs/savesync/savesync.conf
PIPE="/tmp/savesync_pipe"
LOG_FILE="/recalbox/share/system/logs/savesync.log"
export LOG_FILE="/recalbox/share/system/logs/savesync.log"
export REMOTE_BASE="saves:gamepi-tv"
export PIPE="/tmp/savesync_pipe"
export LOG_FILE="/recalbox/share/system/logs/savesync.log"
# Setup the pipe if it doesn't exist
[ -p "$PIPE" ] || mkfifo "$PIPE"
@@ -26,7 +26,7 @@ while true; do
# Fork the event handling
(
event_data="${line#EVENT:}"
write_log "Event received"
# Process the multi-line event data
# We use echo and a pipe to feed the while loop
echo "$event_data" | tr -d '\r' | while IFS="=" read -r key val; do