[ a || b ]
, use [ a ] || [ b ]
.[ "$1" = "-v" || "$1" = "-help" ]
[ "$1" = "-v" ] || [ "$1" = "-help" ]
||
cannot be used in a [ .. ]
test
expression. Instead, make two [ .. ]
expressions and put
the ||
between them.
None.
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.