Avoid bash way, improve posix shell portability

Bash accepts
test "$AAA" == "BBB"; then
but some posix compliant shell cannot handle this.
Thay can handle
test "$AAA" = "BBB"; then
only.
Could you use posix way?