diff options
author | Asa Venton <asav1410@gmail.com> | 2019-10-24 13:08:43 +0100 |
---|---|---|
committer | Asa Venton <asav1410@gmail.com> | 2019-10-24 13:08:43 +0100 |
commit | 193e011cacc19fb642472014d32639f5686df05e (patch) | |
tree | ec0adc396500126b5a32967adfe1a0afb8dd9871 | |
parent | d3acf9b290cee0a3b820b048aafd1185657bfc70 (diff) |
Fix if statement rejecting input like 'bus station stand' incorrectly matching stips with the word statoin in them
-rwxr-xr-x | livetimes.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/livetimes.sh b/livetimes.sh index f949afd..c7ce414 100755 --- a/livetimes.sh +++ b/livetimes.sh @@ -149,7 +149,7 @@ elif [[ $(echo $stop | tr -cd ' \t' | wc -c) == 1 ]] && [[ "$stop" =~ [0-9][0-9] futuretime="after $time, " _nextbus fi -elif [[ ${stop,,} == *"bus"* ]] || [[ ${stop,,} == *"station"* ]] || [[ ${stop,,} == *"stand"* ]]; then +elif [[ ${stop,,} == *"bus"* ]] || [[ ${stop,,} == *"bus station"* ]] || [[ ${stop,,} == *"stand"* ]]; then _rejectbusstation # input not matching any of the ifs can be searched against API else |