summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlivetimes.sh2
1 files changed, 1 insertions, 1 deletions
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'), "