summaryrefslogtreecommitdiff
path: root/livetimes.sh
diff options
context:
space:
mode:
authorAsa Venton <asav1410@gmail.com>2019-10-24 13:08:43 +0100
committerAsa Venton <asav1410@gmail.com>2019-10-24 13:08:43 +0100
commit193e011cacc19fb642472014d32639f5686df05e (patch)
treeec0adc396500126b5a32967adfe1a0afb8dd9871 /livetimes.sh
parentd3acf9b290cee0a3b820b048aafd1185657bfc70 (diff)
Fix if statement rejecting input like 'bus station stand' incorrectly matching stips with the word statoin in them
Diffstat (limited to 'livetimes.sh')
-rwxr-xr-xlivetimes.sh2
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