DigitalOcean Upgrade to Latest Simple Help Server

Thank you Darrell, I have run the chmod command successfully, however when I run the script it errors on the first line…it says it cant cd to /opt.
I am running the file from the /opt folder.
The instructions on the website suggest the script was to be run from that directory.
Can you offer any further advice.?
Also noticed another error after the cant cd to /opt, it also says 42: Syntax error: end of file unexpected (expecting “then”)