Use [[ ]] instead of [ ] in bash scripts.