My simple bash script to delete files fails

New to Ubuntu and trying to wrap my flat head around this.

My first script (aside from hello world) runs certbot, deletes current certs, and then cleans up after itself. Well, that’s what it’s supposed to do.

Here’s the code:

#!/bin/bash

#To make this script runable, run chmod u+x
#To run, just type ./updateem.sh

cd /etc/letsencrypt/live/
echo -n "Which domain would you like to update/add certs for? Common ones are: "
echo -n "mysite.biz"
echo -n "mysite.com"
echo -n "someothersite.com"
echo -n "apaidsite.com"
echo -n "yourmomlikestoes.com"
echo -n "dontreadthese.com"
echo "ignoretheshadows.com"
read whupsite
service webserver stop
rm /etc/webserver/certificates/$whupsite.pem
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf
certbot certonly --standalone -d $whupsite
ls
cd $whupsite
cat fullchain.pem privkey.pem > /etc/webserver/certificates/$whupsite.pem
cd /etc/letsencrypt/live/
rm -r *.*
service website start
echo -n "All done! Try it and see if it works!"

It fails with “Line 25 unexpected EOF” and “Line 27 unexpected end of file”.