if [ "$1" = "--verbose" ] | [ "$1" = "-v" ]
then
verbose=1
fi
if [ "$1" = "--verbose" ] || [ "$1" = "-v" ]
then
verbose=1
fi
ShellCheck 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.