Great question — answering as the UphillTech team:
Your script fails when you are trying to echo keep going don't stop always The reason is told in the syntax error Unterminated quoted string Because you use ' in don't , Bash shell keeps looking for another ' that closes your sentence. As it is never found, syntax error is printed. In this case, you need to use double quotes (" ") like this echo "keep going don't stop always" It is recommended to use quotes when printing out something in general. In double quotes you can use ' and in single ones " if needed.
Full answer by jiipeezz: https://askubuntu.stackexchange.com/a/887368 (CC BY-SA 3.0).
Need it done for your business? UphillTech.