未验证 提交 f3f4e225 编写于 作者: I iducn 提交者: GitHub

Modify checkcode script (#2240)

* modify parameter of check_code's script

* modify if style of check_code's script
上级 3725917f
......@@ -44,7 +44,7 @@ function check_style(){
pre-commit install
commit_files=on
for file_name in `git diff --numstat upstream/$BRANCH| awk '{print $NF}'`;do
if [[ ! `pre-commit run --files $file_name` ]]; then
if ! pre-commit run --files $file_name ; then
git diff
commit_files=off
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册