From 66131b5827e9141eebd61ed89b9277cdefa9163e Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Thu, 11 May 2017 07:17:25 +0200 Subject: [PATCH] ceph-docker-lint: shellcheck: allow 'source' outside of FILES. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ceph-docker sources a lot of files so to prevent warning from shellcheck we add the option '-x' to source. Follow 'source' statements even when the file is not specified as input. By default, shellcheck will only follow files specified on the command line (plus /dev/null). This option allows following any file the script may source. Signed-off-by: Sébastien Han --- ceph-docker-lint/build/build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ceph-docker-lint/build/build b/ceph-docker-lint/build/build index 41d7621e..6a78663d 100755 --- a/ceph-docker-lint/build/build +++ b/ceph-docker-lint/build/build @@ -23,9 +23,9 @@ function check(){ while read -r filename; do if [[ -z "$IGNORE_THESE_CODES" ]] then - shellcheck "$filename"; + shellcheck -x "$filename"; else - shellcheck -e "$IGNORE_THESE_CODES" "$filename"; + shellcheck -x -e "$IGNORE_THESE_CODES" "$filename"; fi done return $? -- 2.39.5