|| for
logical OR. Single | will pipe.if [ "$1" = "--verbose" ] | [ "$1" = "-v" ]
then
verbose=1
fiif [ "$1" = "--verbose" ] || [ "$1" = "-v" ]
then
verbose=1
fiShellCheck found a test command followed by a
|. This was undoubtedly intended as a logical OR
(||).
None
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.