Skip to content

Commit

Permalink
Fix minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t authored Dec 16, 2024
1 parent 80e337c commit 6b2edb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/etc/s6-overlay/scripts/tropo-alert
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 6b2edb2

Please sign in to comment.