Aqui está o problema:
254 echo “The OpenSSH server may be installed."
^––SC1015 This is a unicode double quote. Delete and retype it.
Outras coisas que valem a pena notar:
76 echo "$UNIXMESSSAGE1 rm"
^––SC2153 Possible misspelling: UNIXMESSSAGE1 may not be assigned, but UNIXMESSAGE1 is.
260 read -n 1 -s
^––SC2162 read without -r will mangle backslashes.
315 read DELSUDO
^––SC2162 read without -r will mangle backslashes.
320 deluser $DELSUDO sudo
^––SC2086 Double quote to prevent globbing and word splitting.
335 read DELAPACHE
^––SC2162 read without -r will mangle backslashes.
340 deluser $DELAPACHE www-data
^––SC2086 Double quote to prevent globbing and word splitting.
357 read DELUSER
^––SC2162 read without -r will mangle backslashes.
362 deluser --remove-home $DELUSER
^––SC2086 Double quote to prevent globbing and word splitting.
Eu encontrei o problema usando shellcheck.net ; em geral, considere o uso dessa ou de uma ferramenta equivalente para capturar rapidamente erros de sintaxe / possíveis problemas com seus scripts.