Sfoglia il codice sorgente

Only run the checkIncludes.py script if it exists

(It was added in 0.3.5)
Nick Mathewson 5 anni fa
parent
commit
dd22c84ccf
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  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