From: Sébastien Han Date: Thu, 11 May 2017 05:17:25 +0000 (+0200) Subject: ceph-docker-lint: shellcheck: allow 'source' outside of FILES. X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=66131b5827e9141eebd61ed89b9277cdefa9163e;p=ceph-build.git ceph-docker-lint: shellcheck: allow 'source' outside of FILES. 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 --- 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 $?