From 9b10abe19bd4cd9cf7b35f551007c8983c15f210 Mon Sep 17 00:00:00 2001 From: kx1t <15090643+kx1t@users.noreply.github.com> Date: Sun, 23 Feb 2025 09:50:34 -0500 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20strip=20spaces=20in=20operator?= =?UTF-8?q?=20name=20for=20MQTT=20notifications?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rootfs/usr/share/plane-alert/plane-alert.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/usr/share/plane-alert/plane-alert.sh b/rootfs/usr/share/plane-alert/plane-alert.sh index 87bc8c7..d6d22cf 100755 --- a/rootfs/usr/share/plane-alert/plane-alert.sh +++ b/rootfs/usr/share/plane-alert/plane-alert.sh @@ -327,7 +327,7 @@ then [[ "${header[0]:0:1}" == "$" ]] && pa_record[0]="#${pa_record[0]}" # ICAO field [[ "${header[1]:0:1}" == "$" ]] && [[ -n "${pa_record[1]}" ]] && pa_record[1]="#${pa_record[1]//[[:space:]-]/}" # tail field - [[ "${header[2]:0:1}" == "$" ]] && [[ -n "${pa_record[2]}" ]] && pa_record[2]="#${pa_record[2]//[[:space:]]/}" # owner field, stripped off spaces + [[ "${header[2]:0:1}" == "$" ]] && [[ -n "${pa_record[2]}" ]] && pa_record[2]="#${pa_record[2]}" # owner field [[ "${header[3]:0:1}" == "$" ]] && [[ -n "${pa_record[2]}" ]] && pa_record[3]="#${pa_record[3]}" # equipment field [[ "${header[1]:0:1}" == "$" ]] && [[ -n "${pa_record[8]}" ]] && pa_record[8]="#${pa_record[8]//[[:space:]-]/}" # flight nr field (connected to tail header) [[ -n "${pa_record[10]}" ]] && pa_record[10]="#${pa_record[10]}" # # squawk