瀏覽代碼

Only run the checkIncludes.py script if it exists

(It was added in 0.3.5)
Nick Mathewson 5 年之前
父節點
當前提交
dd22c84ccf
共有 1 個文件被更改,包括 3 次插入2 次删除
  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