replace '==' bash-ism with more-portable '=' for /bin/sh as dash, ref:https://wiki.ubuntu.com/DashAsBinSh