From d14df72f5e74eaf82b979df723ce086dc98a62d0 Mon Sep 17 00:00:00 2001 From: wytch Date: Fri, 27 Feb 2026 19:45:19 -0600 Subject: [PATCH] changed topic and also added the -q 0 flag to mosquitto_sub --- pub_event[rungame,endgame](sync).ash | 2 +- savesync-logger[start](permanent).ash | 4 ++-- savesync[start](permanent).ash | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pub_event[rungame,endgame](sync).ash b/pub_event[rungame,endgame](sync).ash index fb0d7fe..c399bff 100644 --- a/pub_event[rungame,endgame](sync).ash +++ b/pub_event[rungame,endgame](sync).ash @@ -65,7 +65,7 @@ else fi # 5. Wait for response from daemon -mosquitto_sub -h 127.0.0.1 -p 1883 -t "$TOPIC" | while IFS="=" read -r key value +mosquitto_sub -h 127.0.0.1 -p 1883 -q 0 -t "$TOPIC" | while IFS="=" read -r key value do case "$key" in "SaveSync") call_exit "$value";; diff --git a/savesync-logger[start](permanent).ash b/savesync-logger[start](permanent).ash index 5207d07..002f924 100644 --- a/savesync-logger[start](permanent).ash +++ b/savesync-logger[start](permanent).ash @@ -6,9 +6,9 @@ touch "$LOG_FILE" mosquitto_pub -h 127.0.0.1 -p 1883 -t "$TOPIC" "SaveLogStart=1" -mosquitto_sub -h 127.0.0.1 -p 1883 -t "$TOPIC" | while IFS="=" read -r key value +mosquitto_sub -h 127.0.0.1 -p 1883 -q 0 -t "$TOPIC" | while IFS="=" read -r key value do case "$key" in - "SaveLog") printf "%s\n" "$value" >> "$LOG_FILE" ;; + "SaveLog") printf "%s\n" "$value" >>"$LOG_FILE" ;; esac done diff --git a/savesync[start](permanent).ash b/savesync[start](permanent).ash index d07dd58..eece4de 100644 --- a/savesync[start](permanent).ash +++ b/savesync[start](permanent).ash @@ -28,7 +28,7 @@ log() { log "INFO" "--- ES Event Daemon Started ---" # --- Main Listener Loop --- -mosquitto_sub -h 127.0.0.1 -p 1883 -t "$TOPIC" | while IFS="=" read -r key value +mosquitto_sub -h 127.0.0.1 -p 1883 -q 0 -t "$TOPIC" | while IFS="=" read -r key value do # 1. Clean Carriage Returns from Windows-style line endings value=$(echo "$value" | tr -d '\r')