Multiline docker stats
This commit is contained in:
parent
ba0d687428
commit
ab201c3db5
|
@ -30,7 +30,6 @@ function hc_send(){
|
||||||
|
|
||||||
if [ -z "$UPTIME" ]; then
|
if [ -z "$UPTIME" ]; then
|
||||||
UPTIME=$(docker ps --format '{{.Names}} {{.RunningFor}}' --filter name=bridgehead || echo "Unable to get docker statistics")
|
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
|
fi
|
||||||
|
|
||||||
if [ -n "$2" ]; then
|
if [ -n "$2" ]; then
|
||||||
|
|
Loading…
Reference in New Issue