change [[ ... ]] to [ ... ] for sh compilitable