From ab201c3db59447df651e88819b6c365269fa9626 Mon Sep 17 00:00:00 2001 From: Martin Lablans Date: Thu, 6 Oct 2022 10:32:18 +0200 Subject: [PATCH] Multiline docker stats --- lib/monitoring.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/monitoring.sh b/lib/monitoring.sh index 75e62af..e8f7ae5 100755 --- a/lib/monitoring.sh +++ b/lib/monitoring.sh @@ -30,7 +30,6 @@ function hc_send(){ if [ -z "$UPTIME" ]; then UPTIME=$(docker ps --format '{{.Names}} {{.RunningFor}}' --filter name=bridgehead || echo "Unable to get docker statistics") - UPTIME=$(echo "$UPTIME" | tr '\n' '|' || echo "Unable to get docker statistics") fi if [ -n "$2" ]; then