From d504ae1c40757a9311a9ec1bb93b26a1cf2c7a68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=99=AB=20Christian=20Krause=20=E2=99=AB?= Date: Fri, 14 Sep 2018 09:49:05 +0200 Subject: [PATCH] adds the source directive as a possible solution --- SC1091.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SC1091.md b/SC1091.md index 900cb34..9f2d27d 100644 --- a/SC1091.md +++ b/SC1091.md @@ -10,6 +10,15 @@ source somefile ### 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 # shellcheck disable=SC1091 source somefile