From cfed476096ae3e025b097d317080222564477b36 Mon Sep 17 00:00:00 2001 From: wytch Date: Fri, 27 Feb 2026 19:48:51 -0600 Subject: [PATCH] mqtt fuckiness --- pub_event[rungame,endgame](sync).ash | 2 +- savesync[start](permanent).ash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pub_event[rungame,endgame](sync).ash b/pub_event[rungame,endgame](sync).ash index c399bff..31b0cf3 100644 --- a/pub_event[rungame,endgame](sync).ash +++ b/pub_event[rungame,endgame](sync).ash @@ -17,7 +17,7 @@ log() { printf "%s\n" "$log_line" >> "$ERROR_LOG" fi - mosquitto_pub -h 127.0.0.1 -p 1883 -t "$TOPIC" "SaveLog=${log_line}" + mosquitto_pub -h 127.0.0.1 -p 1883 -t "$TOPIC" "SaveLog='${log_line}'" # printf "%s\n" "$log_line" >> "$LOG_FILE" 2>/dev/null [ "$DEBUG_MODE" -eq 1 ] && printf "%s\n" "$log_line" diff --git a/savesync[start](permanent).ash b/savesync[start](permanent).ash index eece4de..7b02c26 100644 --- a/savesync[start](permanent).ash +++ b/savesync[start](permanent).ash @@ -14,7 +14,7 @@ log() { timestamp=$(date '+%Y-%m-%d %H:%M:%S') local log_line="[$timestamp] [$level] $msg" - mosquitto_pub -h 127.0.0.1 -p 1883 -t "$TOPIC" "SaveLog=${log_line}" + mosquitto_pub -h 127.0.0.1 -p 1883 -t "$TOPIC" "SaveLog='${log_line}'" # printf "%s\n" "$log_line" >> "$LOG_FILE" 2>/dev/null [ "$DEBUG_MODE" -eq 1 ] && printf "%s\n" "$log_line"