Enable shellcheck to run for select scripts

Enable shellcheck to run on zed scripts,
paxcheck.sh, zfs-tests.sh, zfs.sh, and zloop.sh.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #5812
This commit is contained in:
Giuseppe Di Natale
2017-03-09 10:20:15 -08:00
committed by Brian Behlendorf
parent 9b77d1c958
commit c552fbc5f0
9 changed files with 114 additions and 100 deletions
+6 -3
View File
@@ -47,11 +47,14 @@ cstyle:
shellcheck:
@if type shellcheck > /dev/null 2>&1; then \
(find ${top_srcdir} -type f -name '*.sh.in' -o -type f \
-name '*.sh'; find etc/init.d/zfs*.in -type f) | \
shellcheck --exclude=SC1090 --format gcc scripts/paxcheck.sh \
scripts/zloop.sh \
scripts/zfs-tests.sh \
scripts/zfs.sh; \
(find cmd/zed/zed.d/*.sh -type f) | \
grep -v 'zfs-script-config' | \
while read file; do \
shellcheck --format gcc "$$file"; \
shellcheck --exclude=SC1090 --format gcc "$$file"; \
done; \
fi