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
# 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}"
}