fix command testing for docker network

This commit is contained in:
Ruben 2025-07-17 13:41:26 -05:00
commit 80c168f9a6
No known key found for this signature in database
GPG key ID: 8EA836555FB6D9A5

View file

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