fixed invalid operator in bash script