Changed == to =

== is not POSIX.
Default shell on Debian is dash. So, on my Debian box all this "test"s are interpreted by dash. And dash's built-in "test" doesn't understand ==