[..](..)
, use
||
instead of -o
.[[ "$1" = "-v" -o "$1" = "-help" ]]
[[ "$1" = "-v" || "$1" = "-help" ]]
-o
for logical OR is not supported in a
[[ .. ]]
expression. Use ||
instead.
None.
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.