Pārlūkot izejas kodu

Only run the checkIncludes.py script if it exists

(It was added in 0.3.5)
Nick Mathewson 5 gadi atpakaļ
vecāks
revīzija
dd22c84ccf
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      scripts/maint/pre-commit.git-hook

+ 3 - 2
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