From 58d296cdf17412b918cb6ab44f41d6411b91a30b Mon Sep 17 00:00:00 2001 From: yansheng836 Date: Thu, 3 Oct 2024 23:16:39 +0800 Subject: [PATCH] chore: update hooks --- git-hooks/pre-commit | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/git-hooks/pre-commit b/git-hooks/pre-commit index 04e842a..6ea1159 100644 --- a/git-hooks/pre-commit +++ b/git-hooks/pre-commit @@ -1,7 +1,8 @@ #!/bin/sh echo '提交前执行...' -# 自动将Github page内容同步到docs文件夹 -cp .git/hooks/pre-commit ./git-hooks/ +#自动将Github page内容同步到docs文件夹 +#cp .git/hooks/pre-commit ./git-hooks/ +find .git/hooks | grep -v .sample | grep hooks/ | xargs -i cp {} ./git-hooks git add ./git-hooks/* cp README.md ./docs/README.md