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"