From ca4eb1eb338c8ee1bfe23c61f83912f70606fabb Mon Sep 17 00:00:00 2001 From: ars Date: Thu, 23 Jul 2020 19:16:37 +0100 Subject: Fix if statement syntax --- livetimes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/livetimes.sh b/livetimes.sh index bd5f0e8..5de5563 100755 --- a/livetimes.sh +++ b/livetimes.sh @@ -127,7 +127,7 @@ services=$(echo $timetables | jq '.timetables[].service_number') if [ "$stop" == "-h" ] || [ "$stop" == "--help" ] || [[ -z "${stop// }" ]]; then _help # checks if input pattern matches a 4 digit bus stop code -elif [ ${stop,,} == "source" ]; then +elif [[ ${stop,,} == "source" ]]; then echo "https://www.blatech.co.uk/ars/liberty-bus-live-times" exit 0 elif [[ "$stop" =~ ^-?[0-9]+$ ]] && [ $(echo ${#stop} == 4) ]; then -- cgit v1.2.3