Is this because of the bash version?

For example in centos to compare 2 strings I use ==.
The man for [ on ubuntu says to use = for string comparison.

My target is to move one build system made from bash scripts from centos to ubuntu.

Is there any converter/normalizer of shell scripts?