]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-docker-lint: shellcheck: allow 'source' outside of FILES.
authorSébastien Han <seb@redhat.com>
Thu, 11 May 2017 05:17:25 +0000 (07:17 +0200)
committerSébastien Han <seb@redhat.com>
Thu, 11 May 2017 05:17:25 +0000 (07:17 +0200)
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 <seb@redhat.com>
ceph-docker-lint/build/build

index 41d7621e05ca83c46dee79da775777059f0c8c32..6a78663dffaec9005fdbeff7d750d64683da747e 100755 (executable)
@@ -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 $?