diff options
-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''), " |