mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
adds the source directive as a possible solution
@@ -10,6 +10,15 @@ source somefile
|
|||||||
|
|
||||||
### Correct code:
|
### Correct code:
|
||||||
|
|
||||||
|
In case you have access to the file, e.g. if it is included in your source code repository:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# shellcheck source=somefile
|
||||||
|
source somefile
|
||||||
|
```
|
||||||
|
|
||||||
|
In case you do not have access to the file:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
source somefile
|
source somefile
|
||||||
|
Reference in New Issue
Block a user