3 CHECKPATH=".gitlab-ci/container" # TODO: expand to cover whole .gitlab-ci/
6 [[ $1 == *.sh ]] && return 0
7 [[ $1 == */bash-completion/* ]] && return 0
8 [[ $(file -b --mime-type "$1") == text/x-shellscript ]] && return 0
12 while IFS= read -r -d $'' file; do
13 if is_bash "$file" ; then
14 shellcheck -x -W0 -s bash "$file"
23 done < <(find $CHECKPATH -type f \! -path "./.git/*" -print0)