summaryrefslogtreecommitdiff
path: root/livetimes.sh
diff options
context:
space:
mode:
authorars <asav1410@gmail.com>2020-07-23 19:16:37 +0100
committerars <asav1410@gmail.com>2020-07-23 19:16:37 +0100
commitca4eb1eb338c8ee1bfe23c61f83912f70606fabb (patch)
tree41fe69ae4dd35cc1ffce45317a04c2f1a8f84474 /livetimes.sh
parenta62d0aa88631cf9ad5ca1441b7ba6a633bf711f3 (diff)
Fix if statement syntax
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