aboutsummaryrefslogtreecommitdiff
path: root/scripts/git/pre-commit.git-hook
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-08-30 22:54:05 +1000
committerteor <teor@torproject.org>2019-09-05 11:15:26 +1000
commit5c2941e69f3e444664d6426f42cb52cb885800ee (patch)
tree57c60f1d36631dd6f5c08850ea9eb05b9ee008ca /scripts/git/pre-commit.git-hook
parentd14573a62371fd6d21ed801bc89e2f3ebdb98b2b (diff)
downloadtor-5c2941e69f3e444664d6426f42cb52cb885800ee.tar.gz
tor-5c2941e69f3e444664d6426f42cb52cb885800ee.zip
shellcheck: Add shellcheck to the pre-commit hook
* Move the shellcheck script from the Makefile to its own script file * Reformat the shellcheck script so it's easier to read and modify * Call the shellcheck script from the pre-commit hook Fixes bug 30967; not in any released version of Tor.
Diffstat (limited to 'scripts/git/pre-commit.git-hook')
-rwxr-xr-xscripts/git/pre-commit.git-hook4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/git/pre-commit.git-hook b/scripts/git/pre-commit.git-hook
index b2a1847a2b..1c381ec60a 100755
--- a/scripts/git/pre-commit.git-hook
+++ b/scripts/git/pre-commit.git-hook
@@ -53,3 +53,7 @@ if [ -e "${PT_DIR}/practracker.py" ]; then
fi
fi
fi
+
+if [ -e scripts/maint/checkShellScripts.sh ]; then
+ scripts/maint/checkShellScripts.sh
+fi