From 6b2edb2a2e559a1e29a9350a2c1bd5c01130c79f Mon Sep 17 00:00:00 2001 From: kx1t <15090643+kx1t@users.noreply.github.com> Date: Mon, 16 Dec 2024 02:13:04 -0500 Subject: [PATCH] Fix minor bug --- rootfs/etc/s6-overlay/scripts/tropo-alert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/etc/s6-overlay/scripts/tropo-alert b/rootfs/etc/s6-overlay/scripts/tropo-alert index f312f04..1764b55 100755 --- a/rootfs/etc/s6-overlay/scripts/tropo-alert +++ b/rootfs/etc/s6-overlay/scripts/tropo-alert @@ -73,7 +73,7 @@ done # Get furthest the ships in the current ships.json # The JQ function returns all vessel > $TROPO_MINDIST in the format "mmsi dist last_signal" -readarray -d ' ' -t furthest_vessel < <(curl -ssL "${AIS_URL}" \ +readarray -d ' ' -t furthest_vessel < <(curl -sSL "${AIS_URL}" \ | jq -r --arg dist "$TROPO_MINDIST" '.ships[] | select(.distance>=($dist|tonumber)) | "\(.mmsi) \(.distance) \(.last_signal) \(.validated)"' \ | awk '( ! ENVIRON["MASTODON_SKIP_FILTER"] || $1 !~ ENVIRON["MASTODON_SKIP_FILTER"] )' \ | sort -rn -k2.1 | head -1 | tr -d '\n')