diff --git a/ci_scripts/check_api_cn.sh b/ci_scripts/check_api_cn.sh index 6ca2f970eeca9c354d1e461315b6529745890f60..c2cd521f9376d5e2bc0a255b6a8d47bf183a5ad6 100644 --- a/ci_scripts/check_api_cn.sh +++ b/ci_scripts/check_api_cn.sh @@ -3,14 +3,14 @@ git_files=`git diff --numstat upstream/$BRANCH | awk '{print $NF}'` for file in `echo $git_files`;do - grep "code-block" $files + grep "code-block" ../$file if [ $? -eq 0 ] ;then echo $file | grep "doc/paddle/api/paddle/.*_cn.rst" if [ $? -eq 0 ];then api_file=`echo $file | sed 's#doc/paddle/api/##g'` grep -w "${api_file}" ${DIR_PATH}/api_white_list.txt if [ $? -ne 0 ];then - python chinese_samplecode_processor.py $file + python chinese_samplecode_processor.py ../$file if [ $? -ne 0 ];then echo "chinese sample code failed" exit 5