diff options
author | ars <asav1410@gmail.com> | 2020-07-23 19:16:37 +0100 |
---|---|---|
committer | ars <asav1410@gmail.com> | 2020-07-23 19:16:37 +0100 |
commit | ca4eb1eb338c8ee1bfe23c61f83912f70606fabb (patch) | |
tree | 41fe69ae4dd35cc1ffce45317a04c2f1a8f84474 /livetimes.sh | |
parent | a62d0aa88631cf9ad5ca1441b7ba6a633bf711f3 (diff) |
Fix if statement syntax
Diffstat (limited to 'livetimes.sh')
-rwxr-xr-x | livetimes.sh | 2 |
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 |