From 94d3170401337553cad267aabed4955bf2ddd2ba Mon Sep 17 00:00:00 2001 From: Asa Venton Date: Mon, 21 Oct 2019 21:29:47 +0100 Subject: fix sed that was meant to remove trailing comma rather than first pipe --- livetimes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/livetimes.sh b/livetimes.sh index 2427dde..4b22639 100755 --- a/livetimes.sh +++ b/livetimes.sh @@ -24,7 +24,7 @@ _liveresult() { else for json in $(echo "${livetimes}" | jq -r '.[] | @base64'); do if [[ $(_jq '.service_number') != $outroute ]]; then - result=$(echo $result | sed 's/|//') + result=$(echo $result | sed 's/,$//') result="$result | $(_jq '.destination')[$(_jq '.service_number')] - $(_jq '.eta'), " elif [ $outroute = $outroute ]; then result="$result $(_jq '.eta'), " -- cgit v1.2.3