]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Only run the checkIncludes.py script if it exists
authorNick Mathewson <nickm@torproject.org>
Thu, 24 Jan 2019 13:06:09 +0000 (08:06 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 24 Jan 2019 13:06:09 +0000 (08:06 -0500)
(It was added in 0.3.5)

scripts/maint/pre-commit.git-hook

index a0d0a8bb6cef755d0fe1fa3ac1441398d975156a..b4c4ce20614f0943a7cc142ac168e259dcbf7f99 100755 (executable)
@@ -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