From: Nick Mathewson Date: Thu, 24 Jan 2019 13:06:09 +0000 (-0500) Subject: Only run the checkIncludes.py script if it exists X-Git-Tag: tor-0.4.1.0-alpha-dev~19^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd22c84ccf07214d3d57642c2ba161be496f3607;p=thirdparty%2Ftor.git Only run the checkIncludes.py script if it exists (It was added in 0.3.5) --- 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