Explorar el Código

Only run the checkIncludes.py script if it exists

(It was added in 0.3.5)
Nick Mathewson hace 5 años
padre
commit
dd22c84ccf
Se han modificado 1 ficheros con 3 adiciones y 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