adds the source directive as a possible solution

♫ Christian Krause ♫
2018-09-14 09:49:05 +02:00
parent 35752c72b0
commit d504ae1c40

@@ -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