mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2055 (markdown)
@@ -41,7 +41,7 @@ This statement is identical to `! [[ $1 = foo || $1 = bar ]]`, which also works
|
|||||||
Rare.
|
Rare.
|
||||||
|
|
||||||
* If I want to check that $FOO, $BAR and $COW are all equal:
|
* If I want to check that $FOO, $BAR and $COW are all equal:
|
||||||
```
|
```sh
|
||||||
if [[ $FOO != $BAR || $FOO != $COW ]]
|
if [[ $FOO != $BAR || $FOO != $COW ]]
|
||||||
then
|
then
|
||||||
echo "$FOO and $BAR and $COW are not all equal"
|
echo "$FOO and $BAR and $COW are not all equal"
|
||||||
|
Reference in New Issue
Block a user