-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC2266
Vidar Holen edited this page Nov 3, 2022
·
1 revision
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
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!