diff --git a/helperbot b/helperbot index 602de49..7d9f78f 100755 --- a/helperbot +++ b/helperbot @@ -569,10 +569,10 @@ function docker_cleanup { docker network prune -f # ensure our ipv6 network still exists echo "${blue}docker-cleanup:${normal} Ensuring IPv6 network still exists..." - if [ ! -x "docker network ls | grep 'ip6net'" ]; then - docker network create --ipv6 --subnet fd00:cafe:face:feed::/64 ip6net - else + if docker network ls | grep 'ip6net'; then echo "${green}Docker IPv6 network still exists.${normal}" + else + docker network create --ipv6 --subnet fd00:cafe:face:feed::/64 ip6net fi echo "${green}Done. Beep!${normal}" }