diff --git a/bash/decoders/dump1090-mutability.sh b/bash/decoders/dump1090-mutability.sh old mode 100644 new mode 100755 index 8093d98..15ba9a4 --- a/bash/decoders/dump1090-mutability.sh +++ b/bash/decoders/dump1090-mutability.sh @@ -157,10 +157,10 @@ echo "from the website http://www.heywhatsthat.com. Some work will be required o echo "part including visiting http://www.heywhatsthat.com and generating a new" echo "panorama set to your location." echo -e "\033[37m" -read -p "Do you wish to add terrain limit rings to the dump1090 map?" ADDTERRAINRINGS +read -p "Do you wish to add terrain limit rings to the dump1090 map? [Y/n] " ADDTERRAINRINGS -if [[ $ADDTERRAINRINGS =~ ^[Yy]$ ]]; then - echo -e "\033[33m" +if [[ ! $ADDTERRAINRINGS =~ ^[Nn]$ ]]; then + echo -e "\033[31m" echo "READ THE FOLLOWING INSTRUCTION CAREFULLY!" echo "" echo -e "\033[33m" @@ -189,7 +189,7 @@ if [[ $ADDTERRAINRINGS =~ ^[Yy]$ ]]; then echo -e "\033[33m" echo "Downloading JSON data pertaining to the panorama ID you supplied..." echo -e "\033[37m" - sudo wget -O /usr/share/dump1090-mutability/html/upintheair.json 'http://www.heywhatsthat.com/api/upintheair.json?view=${HEYWHATSTHATVIEWID}&refraction=0.25&alts=3048,12192' + sudo wget -O /usr/share/dump1090-mutability/html/upintheair.json http://www.heywhatsthat.com/api/upintheair.json?view=${HEYWHATSTHATVIEWID}&refraction=0.25&alts=3048,12192 fi ## DISPLAY MESSAGE STATING DUMP1090-MUTABILITY SETUP IS COMPLETE