From f8593412562e81c14f07d544270b0ee7236c2bce Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 6 Nov 2016 20:45:30 +0100 Subject: Avoid repeating ipv4 address of the previous container in container list command. Signed-off-by: Daniel Baumann --- lib/container/list | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/container/list b/lib/container/list index d522623..0bfc69d 100755 --- a/lib/container/list +++ b/lib/container/list @@ -183,6 +183,8 @@ do ;; esac + ADDRESS="" + if [ -e "${MACHINES}/${CONTAINER}/etc/network/interfaces" ] then ADDRESSES="$(awk '/address/ { print $2 }' ${MACHINES}/${CONTAINER}/etc/network/interfaces)" -- cgit v1.2.3