Conditional expressions are used by the [[ compound command and the test and [ builtin commands to test file attributes and perform
string and arithmetic comparisons.
string1 == string2
True if the strings are equal. = may be used in place of == for strict POSIX compliance.
So, '==' is OK