fix issue when getting ip address on windows
@@ -34,7 +34,7 @@ then
ip=$(ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1' | head -1)
else
# If Windows
- ip=$(ipconfig | grep -Eo 'IPv4-Adresse . . . . . . . . . . : ?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | tail -1)
+ ip=$(ipconfig | grep -Eo '(IPv4.*)' | grep -Eo '([0-9]*\.){3}[0-9]*' | tail -1)
# Workaround for Kafka (https://github.com/docker/for-win/issues/1829)
export COMPOSE_CONVERT_WINDOWS_PATHS=1
fi
