diff --git a/libnetwork/support.sh b/libnetwork/support.sh index 158d6b329a..0af7b7126b 100755 --- a/libnetwork/support.sh +++ b/libnetwork/support.sh @@ -26,7 +26,7 @@ function echo_and_run { function check_ip_overlap { inspect=$1 - overlap=$(echo "$inspect_output" | grep "EndpointIP\|VIP" | awk -F ':' '{print $2}' | sort | uniq -c | grep -v "1 ") + overlap=$(echo "$inspect_output" | grep "EndpointIP\|VIP" | cut -d':' -f2 | sort | uniq -c | grep -v "1 ") if [ ! -z "$overlap" ]; then echo -e "\n\n*** OVERLAP on Network ${networkID} ***"; echo -e "${overlap} \n\n"