mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Example of ignoring the error
@@ -84,3 +84,11 @@ This is better than an unquoted value because the alternative value can be prope
|
|||||||
---
|
---
|
||||||
|
|
||||||
As always, this warning can be [[ignore]]d on a case-by-case basis.
|
As always, this warning can be [[ignore]]d on a case-by-case basis.
|
||||||
|
this is especially relevant when BASH many not be available for the array work around.
|
||||||
|
For example...
|
||||||
|
```sh
|
||||||
|
FLAGS="-av --delete --delete-excluded
|
||||||
|
...
|
||||||
|
# shellcheck disable=SC2086
|
||||||
|
rsync $FLAGS ~/dir remote_host:dir
|
||||||
|
```
|
||||||
|
Reference in New Issue
Block a user