forked from ungleich-public/cdist-contrib
Move run-shellcheck to scripts/
This commit is contained in:
parent
88661eb6f3
commit
898b6a20b0
1 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,9 @@ SHELLCHECKCMD="shellcheck -s sh -f gcc -x"
|
||||||
SHELLCHECK_SKIP=': __.*is referenced but not assigned.*\[SC2154\]'
|
SHELLCHECK_SKIP=': __.*is referenced but not assigned.*\[SC2154\]'
|
||||||
SHELLCHECKTMP=".shellcheck.tmp"
|
SHELLCHECKTMP=".shellcheck.tmp"
|
||||||
|
|
||||||
|
# Move to top-level cdist-contrib directory.
|
||||||
|
cd $(dirname $0)/..
|
||||||
|
|
||||||
check () {
|
check () {
|
||||||
find type/ -type f $1 $2 -exec ${SHELLCHECKCMD} {} + | grep -v "${SHELLCHECK_SKIP}" > "${SHELLCHECKTMP}"
|
find type/ -type f $1 $2 -exec ${SHELLCHECKCMD} {} + | grep -v "${SHELLCHECK_SKIP}" > "${SHELLCHECKTMP}"
|
||||||
test ! -s "${SHELLCHECKTMP}" || { cat "${SHELLCHECKTMP}"; exit 1; }
|
test ! -s "${SHELLCHECKTMP}" || { cat "${SHELLCHECKTMP}"; exit 1; }
|
Loading…
Reference in a new issue