未验证 提交 3e9e7d79 编写于 作者: T tianshuo78520a 提交者: GitHub

Files without code-block do not run (#1778)

上级 11c6c0f7
#!/bin/bash
git_files=`git diff --numstat upstream/$BRANCH`
git_files=`git diff --numstat upstream/$BRANCH|awk '{print $NF}'`
if [ "$night" == "develop" ];then
......@@ -15,6 +15,8 @@ else
fi
for files in `echo $git_files`;do
grep "code-block" $files
if [ $? -eq 0 ] ;then
echo $files|grep 'doc/fluid/api_cn/.*/.*.rst'
if [ $? -eq 0 ];then
api_file=`echo $files|sed 's#doc/fluid/api_cn/##g'`
......@@ -27,5 +29,6 @@ for files in `echo $git_files`;do
fi
fi
fi
fi
done
......@@ -2,8 +2,8 @@
DIR_PATH="/FluidDoc"
/bin/bash ${DIR_PATH}/scripts/checkapproval.sh
/bin/bash ${DIR_PATH}/scripts/check_api_cn.sh
if [ $? -ne 0 ];then
exit 1
fi
/bin/bash ${DIR_PATH}/scripts/check_api_cn.sh
/bin/bash ${DIR_PATH}/scripts/checkapproval.sh
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册