mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC1091 (markdown)
@@ -20,7 +20,7 @@ source somefile
|
|||||||
In case you do not have access to the file:
|
In case you do not have access to the file:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# shellcheck disable=SC1091
|
# shellcheck source=/dev/null
|
||||||
source somefile
|
source somefile
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -34,4 +34,6 @@ Feel free to ignore the error with a [[directive]].
|
|||||||
|
|
||||||
### Exceptions:
|
### Exceptions:
|
||||||
|
|
||||||
|
ShellCheck is unable to follow dynamic paths, such as `source "$somedir/file"`. For these cases, see [[SC1090: Can't follow non-constant source. Use a directive to specify location|SC1090]] instead. You may be seeing SC1091 because ShellCheck tried to be helpful and strip a leading dynamic path element as described on that page.
|
||||||
|
|
||||||
If you're fine with it, ignore the message with a [[directive]].
|
If you're fine with it, ignore the message with a [[directive]].
|
||||||
|
Reference in New Issue
Block a user