I just wrote my first script to learn some of the basic syntax and I've run into a problem. I can't tell what i'm doing wrong:
When I run it I get
/hw.sh: line 15 syntax error near unexpected token done
but if I'm following the guide I'm reading done is the correct word.
It must be something in the way I've written it, and not a problem with the loop syntax. Can anyone tell?
EDIT: apparently my guide omitted the fi after elif, so I thought they were unnecessary. Protip: they are necessary.