-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC1090
Vidar Holen edited this page Oct 4, 2015
·
9 revisions
. "$(find_install_dir)/lib.sh"
# shellcheck source=src/lib.sh
. "$(find_install_dir)/lib.sh"
ShellCheck is not able to include sourced files from paths that are determined at runtime. The file will not be read, potentially resulting in warnings about unassigned variables and similar.
Use a Directive to point shellcheck to a fixed location it can read instead.
If you don't care that ShellCheck is unable to account for the file, specify # shellcheck source=/dev/null
.