Explorar o código

Only run the checkIncludes.py script if it exists

(It was added in 0.3.5)
Nick Mathewson %!s(int64=5) %!d(string=hai) anos
pai
achega
dd22c84ccf
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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