diff options
author | Asa Venton <asav1410@gmail.com> | 2019-10-20 18:51:25 +0100 |
---|---|---|
committer | Asa Venton <asav1410@gmail.com> | 2019-10-20 18:51:25 +0100 |
commit | 3623e41ebfc8bc6dbdae4c17c5270c660e20598f (patch) | |
tree | db33a5998b56c0323cbd4bc9dd73a796efe2bdee | |
parent | d8ccaf59ad849d9f539df2cb37c35d458904b56b (diff) |
Spelling and formatting
-rwxr-xr-x | livetimes.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/livetimes.sh b/livetimes.sh index f2702f5..6c8ee17 100755 --- a/livetimes.sh +++ b/livetimes.sh @@ -8,7 +8,6 @@ _jq() { echo ${json} | base64 --decode | jq -r ${1} } -# TODO: efficiency of _liveresult? _liveresult() { livetimes=$(curl --silent https://admin.libertybus.je/api/v1/soj/stop_updates/${stop}) outtypes=(destination service_number eta) @@ -26,8 +25,10 @@ _liveresult() { eta) result="$result | ETAs: " ;; + *) ;; + esac for json in $(echo "${livetimes}" | jq -r '.[] | @base64'); do result="$result $(_jq '.'$type''), " |