mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-19 09:50:29 +01:00
Shellcheck all the scripts
This commit is contained in:
parent
ecc5feff38
commit
19dbd431c5
11
Makefile.am
11
Makefile.am
@ -224,10 +224,19 @@ test: all
|
||||
shellcheck:
|
||||
# Only use shellcheck if it is present
|
||||
if command -v shellcheck; then \
|
||||
find $(top_srcdir)/scripts/ -name "*.sh" -exec shellcheck {} +; \
|
||||
find "$(top_srcdir)" -name "*.sh" -not -path "$(top_srcdir)/src/ext/*" -exec shellcheck {} +; \
|
||||
if [ -d "$(top_srcdir)/scripts/test" ]; then \
|
||||
shellcheck $(top_srcdir)/scripts/test/cov-diff $(top_srcdir)/scripts/test/coverage; \
|
||||
fi; \
|
||||
if [ -e "$(top_srcdir)/contrib/dirauth-tools/nagios-check-tor-authority-cert" ]; then \
|
||||
shellcheck "$(top_srcdir)/contrib/dirauth-tools/nagios-check-tor-authority-cert"; \
|
||||
fi; \
|
||||
if [ -e "$(top_srcdir)/contrib/client-tools/torify" ]; then \
|
||||
shellcheck "$(top_srcdir)/contrib/client-tools/torify"; \
|
||||
fi; \
|
||||
if [ -d "$(top_srcdir)/scripts/git" ]; then \
|
||||
shellcheck $(top_srcdir)/scripts/git/*.git-hook; \
|
||||
fi; \
|
||||
fi
|
||||
|
||||
check-local: check-spaces check-changes check-includes check-best-practices shellcheck
|
||||
|
Loading…
Reference in New Issue
Block a user