Use = not ==

The bash shebang didn't seem to have an effect (??). Instead assume sh
and use = not == in conditional.