Pattern: Use of -o
in [[ .. ]]
expression
Issue: -
-o
for logical OR is not supported in a [[ .. ]]
expression. Use ||
instead.
Example of incorrect code:
[[ "$1" = "-v" -o "$1" = "-help" ]]
Example of correct code:
[[ "$1" = "-v" || "$1" = "-help" ]]