From dd22c84ccf07214d3d57642c2ba161be496f3607 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 24 Jan 2019 08:06:09 -0500 Subject: Only run the checkIncludes.py script if it exists (It was added in 0.3.5) --- scripts/maint/pre-commit.git-hook | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts/maint') diff --git a/scripts/maint/pre-commit.git-hook b/scripts/maint/pre-commit.git-hook index a0d0a8bb6c..b4c4ce2061 100755 --- a/scripts/maint/pre-commit.git-hook +++ b/scripts/maint/pre-commit.git-hook @@ -21,5 +21,6 @@ src/test/*.[ch] \ src/test/*/*.[ch] \ src/tools/*.[ch] -python scripts/maint/checkIncludes.py - +if test -e scripts/maint/checkIncludes.py; then + python scripts/maint/checkIncludes.py +fi -- cgit v1.2.3-54-g00ecf