From 5ff420b4ee6b05dff7723616fe100016ec5ef8a6 Mon Sep 17 00:00:00 2001 From: rpatel3001 Date: Tue, 6 Feb 2024 23:23:25 -0500 Subject: [PATCH] repeat scan if no messages --- rootfs/etc/s6-overlay/scripts/dumphfdl.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rootfs/etc/s6-overlay/scripts/dumphfdl.sh b/rootfs/etc/s6-overlay/scripts/dumphfdl.sh index e47e81e..7f0596d 100755 --- a/rootfs/etc/s6-overlay/scripts/dumphfdl.sh +++ b/rootfs/etc/s6-overlay/scripts/dumphfdl.sh @@ -186,6 +186,12 @@ else fi ((i += 1)) done + + if ((${score[$k]} == 0)); then + "${s6wrap[@]}" echo "No messages, repeating scan." + exit + fi + "${s6wrap[@]}" echo -------- "${s6wrap[@]}" echo "${fname[$k]} wins" "${s6wrap[@]}" printf "%-20s%-15s%-25s%-26s%-18s\n" "${fname[$k]}" "score: ${score[$k]}" "stationMessages: ${stationMessages[$k]}" "aircraftMessages: ${aircraftMessages[$k]}" "positions: ${positions[$k]}"