From 82629cd5f755a4fa4f3b2dabbe4a51feba4cff63 Mon Sep 17 00:00:00 2001 From: Rens Hijdra Date: Tue, 13 Aug 2024 21:24:33 +0200 Subject: [PATCH] invert HeyWhatsThat whiptail exitcode conditions --- bash/decoders/dump1090-fa.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bash/decoders/dump1090-fa.sh b/bash/decoders/dump1090-fa.sh index d2feb2b8..c76b0b24 100755 --- a/bash/decoders/dump1090-fa.sh +++ b/bash/decoders/dump1090-fa.sh @@ -286,13 +286,13 @@ if [[ ! -f "/usr/share/dump1090-fa/html/upintheair.json" ]]; then --inputbox "Please enter your Heywhatsthat panorama ID." \ 8 78 3>&1 1>&2 2>&3) whiptail_exit_status=$? - if [[ $whiptail_exit_status == 0 ]]; then + if [[ $whiptail_exit_status != 0 ]]; then log_alert_message "Setup of heywhatsthat maximum range rings was cancelled" break fi heywhatsthat_panorama_id_title="Enter the Heywhatsthat Panorama ID [REQUIRED]" done - if [[ $whiptail_exit_status != 0 ]]; then + if [[ $whiptail_exit_status == 0 ]]; then log_message "Asking the user what the altitude is for the first ring" heywhatsthat_ring_one_altitude_title="First heywhatsthat Ring Altitude" while [[ -z $heywhatsthat_ring_one_altitude ]] ; do