From 193e011cacc19fb642472014d32639f5686df05e Mon Sep 17 00:00:00 2001 From: Asa Venton Date: Thu, 24 Oct 2019 13:08:43 +0100 Subject: Fix if statement rejecting input like 'bus station stand' incorrectly matching stips with the word statoin in them --- livetimes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'livetimes.sh') 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 -- cgit v1.2.3