]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Shellcheck all the scripts
authorrl1987 <rl1987@sdf.lonestar.org>
Sun, 9 Jun 2019 15:20:36 +0000 (18:20 +0300)
committerNick Mathewson <nickm@torproject.org>
Mon, 17 Jun 2019 12:56:02 +0000 (08:56 -0400)
Makefile.am

index 7a0d40d6a5741f890ace0334c3ae7b9bae1ebf5a..df30e0b59a94793b1ba82457b9d0b4851768b6cc 100644 (file)
@@ -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