-
Notifications
You must be signed in to change notification settings - Fork 1.9k
SC2266
Joachim Ansorg edited this page May 3, 2025
·
2 revisions
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
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!