From a141ee87fb664e174aca38327b7ae34a06940cae Mon Sep 17 00:00:00 2001 From: Wenxuan Zhao Date: Thu, 6 Dec 2018 05:08:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=95=E8=BF=87=E6=A3=80=E6=9F=A5=EF=BC=9A?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=94=99=E8=AF=AF=E6=A3=80=E6=9F=A5=20?= =?UTF-8?q?=E2=80=94=E2=80=94=20=E4=B8=8D=E5=85=81=E8=AE=B8=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E6=8F=90=E4=BA=A4=E5=A4=9A=E7=AF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/check/identify.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/check/identify.sh b/scripts/check/identify.sh index 10073706d5..f0a0ad58fa 100644 --- a/scripts/check/identify.sh +++ b/scripts/check/identify.sh @@ -79,7 +79,13 @@ error_undefined() { # 申领多篇 error_translation_requested_multiple() { [ "$SRC_M" -gt 1 ] \ - && echo "匹配错误:申领多篇,请一次仅申领一篇" + && echo "匹配错误:请勿申领多篇,请一次仅申领一篇" +} + +# 提交多篇 +error_translation_completed_multiple() { + [ "$TSL_A" -gt 1 ] \ + && echo "匹配错误:请勿提交多篇,请一次仅提交一篇" } # 执行检查并输出匹配项目 @@ -93,6 +99,7 @@ do_check() { || rule_published_translation_revised \ || { error_translation_requested_multiple \ + || error_translation_completed_multiple \ || error_undefined exit 1 }