mirror of https://github.com/samply/bridgehead.git
Multiline docker stats
This commit is contained in:
parent
ba0d687428
commit
ab201c3db5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue