This commit is contained in:
Xingyu.Wang 2018-12-06 12:02:32 +08:00 committed by GitHub
parent b6cc2905bb
commit 7a3ec58401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,13 +63,6 @@ rule_translation_published() {
&& echo "匹配规则:发布译文 ${PUB_A}"
}
# 校对已发布:只能校对一篇
rule_published_revised() {
[ "$PUB_M" -eq 1 ] \
&& check_category PUB M \
&& [ "$TOTAL" -eq 1 ] && echo "匹配规则:校对已发布"
}
# 定义常见错误
# 未知错误
@ -83,12 +76,6 @@ error_translation_requested_multiple() {
&& echo "匹配错误:申领多篇,请一次仅申领一篇"
}
# 提交多篇
error_translation_completed_multiple() {
[ "$TSL_A" -gt 1 ] \
&& echo "匹配错误:提交多篇,请一次仅提交一篇"
}
# 执行检查并输出匹配项目
do_check() {
rule_bypass_check \
@ -97,10 +84,8 @@ do_check() {
|| rule_translation_completed \
|| rule_translation_revised \
|| rule_translation_published \
|| rule_published_revised \
|| {
error_translation_requested_multiple \
|| error_translation_completed_multiple \
|| error_undefined
exit 1
}