diff options
-rwxr-xr-x | flightquery.sh | 6 |
1 files 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 |