Updated SC1091 (markdown)

Vidar Holen
2021-10-07 14:22:08 -07:00
parent 421839548d
commit 9c6dca8b07

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