When EOF is enclosed in single quotes, it ignores any special characters and will not interpret them in your script.
The following command will print out the lines in between ‘EOF’ and EOF to the screen.
cat << 'EOF'
Lines with $signs are OK
Line with `backticks`
EOF
This is a handy command for your arsenal. Enjoy.