I am trying to compare strings in bash. I already found an answer on how to do it on stackoverflow. In script I am trying, I am using the code submitted by Adam in the menti
If you know you're on bash, and still get this error, make sure you write the if with spaces.
[[1==1]] # This outputs error [[ 1==1 ]] # OK