From 9aaaaffc82cde2dc71c0b3ce260686dc8bbfd2ad Mon Sep 17 00:00:00 2001 From: romeo-golf Date: Sun, 15 Jan 2017 15:38:25 +0000 Subject: [PATCH] Fix test in main.sh so that if dump1090 is not installed the user is prompted so select a fork --- bash/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/main.sh b/bash/main.sh index 7333b45..2ad7df3 100755 --- a/bash/main.sh +++ b/bash/main.sh @@ -214,7 +214,7 @@ if [ $(dpkg-query -W -f='${STATUS}' dump1090-fa 2>/dev/null | grep -c "ok instal fi # If no dump1090 fork is installed and this is not an automated installation ask the user which one to install. -if [ "$DUMP1090_INSTALLED" = "false" ] && [ "$RECEIVER_AUTOMATED_INSTALL" = "false" ] ; then +if [ ! "$DUMP1090_INSTALLED" = "true" ] && [ "$RECEIVER_AUTOMATED_INSTALL" = "false" ] ; then whiptail --backtitle "$RECEIVER_PROJECT_TITLE" --title "Choose Dump1090 Version To Install" --menu "The dump1090-mutability or dump1090-fa package does not appear to be installed on this device. In order to continue setup one of these two packages need to be installed. Please select your prefered dump1090 version from the list below.\n\nPlease note that in order to run dump1090-fa PiAware will need to be installed as well." 16 65 2 "dump1090-mutability" "(Mutability)" "dump1090-fa" "(FlightAware)" case $? in "dump1090-mutability") DUMP1090_FORK="mutability" ;;