From 6b2fe83d7d8ff6567ab8799afb7fdd97dc723866 Mon Sep 17 00:00:00 2001 From: Asa Venton Date: Sat, 31 Oct 2020 05:35:37 +0000 Subject: Fix comparison operators in input validation. --- flightquery.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flightquery.sh b/flightquery.sh index 65b9e03..5379b91 100755 --- a/flightquery.sh +++ b/flightquery.sh @@ -117,15 +117,15 @@ then # TODO add real source echo "https://www.blatech.co.uk/ars/flight-query" exit 0 -elif [[ ${input} =~ "-a" ]] || [[ ${input} == "--arrivals" ]] +elif [[ ${input} =~ "-a" ]] || [[ ${input} =~ "--arrivals" ]] then queryType="arr_iata" _arrivals -elif [[ ${input} =~ "-d" ]] || [[ ${input} == "--departures" ]] +elif [[ ${input} =~ "-d" ]] || [[ ${input} =~ "--departures" ]] then queryType="dep_iata" _departures - # if it doesn't match an option then it's probably a specific plane +# if it doesn't match an option then it's probably a specific plane else queryType="flight_iata" _flight -- cgit v1.2.3