summaryrefslogtreecommitdiff
path: root/livetimes.sh
diff options
context:
space:
mode:
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 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