Use DNS to force youtube into restricted mode - and Pi-Hole

I made it with chmod +x ip.sh executable

But when I enter sudo bash ip.sh

It gives the following error:
sed: -e expression #1, char 41: unterminated `s' command

What does this mean?