mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-23 21:20:42 +08:00
绕过检查:添加错误检查 —— 不允许一次提交多篇
This commit is contained in:
parent
1987e5d99c
commit
a141ee87fb
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user