Commit 93fd130a authored by 吴军's avatar 吴军

更新check.sh

parent 1d12579a
...@@ -21,7 +21,7 @@ echo -e "\n${PURPLE}PHP代码修正CodeSniffer检查结果:${COLOR_END}" ...@@ -21,7 +21,7 @@ echo -e "\n${PURPLE}PHP代码修正CodeSniffer检查结果:${COLOR_END}"
# 被检查了的文件数 # 被检查了的文件数
# 找出哪些文件被更新了 # 找出哪些文件被更新了
for file in $(git diff --name-status $CI_COMMIT_SHA $CI_COMMIT_BEFORE_SHA | grep '\.php$' | egrep -v '^D' | awk '{print $2}'); do for file in $(git diff --name-status $CI_COMMIT_BEFORE_SHA $CI_COMMIT_SHA | grep '\.php$' | egrep -v '^D' | awk '{print $2}'); do
# 文件状态 # 文件状态
# D: deleted # D: deleted
# A: added # A: added
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment