Skip to content

Commit

Permalink
Update send_mastodon
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t authored Nov 30, 2023
1 parent ac5b99a commit ce8530f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/usr/share/vesselalert/send_mastodon
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ links=""
unset mast_str

if [[ -n "$notify_tropo" ]]; then
mast_str="#TropoAlert - Max Distance = ${VESSELS[$1:distance]} nm\n"
mast_str="#TropoAlert - Max Distance = $(printf "%.1f" "${VESSELS[$1:distance]}") nm\n"
fi
mast_str+="#VesselAlert #Ship #Vessel #AIS"
[[ -z "${VESSELS[$1:notification:last]}" ]] && mast_str+=" #NEW #FIRST Observation"
Expand Down

0 comments on commit ce8530f

Please sign in to comment.