From 3623e41ebfc8bc6dbdae4c17c5270c660e20598f Mon Sep 17 00:00:00 2001 From: Asa Venton Date: Sun, 20 Oct 2019 18:51:25 +0100 Subject: Spelling and formatting --- livetimes.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'livetimes.sh') 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''), " -- cgit v1.2.3