diff options
author | teor <teor@torproject.org> | 2019-08-30 22:54:05 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-09-05 11:15:26 +1000 |
commit | 5c2941e69f3e444664d6426f42cb52cb885800ee (patch) | |
tree | 57c60f1d36631dd6f5c08850ea9eb05b9ee008ca /scripts/git/pre-commit.git-hook | |
parent | d14573a62371fd6d21ed801bc89e2f3ebdb98b2b (diff) | |
download | tor-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-x | scripts/git/pre-commit.git-hook | 4 |
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 |