Update identify.sh

This commit is contained in:
Xingyu.Wang 2022-02-14 00:07:29 +08:00 committed by GitHub
parent e88b391709
commit 4186424ebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,6 +69,15 @@ rule_published_translation_revised() {
&& [ "$TOTAL" -eq 1 ] && echo "匹配规则:校对已发布译文"
}
# 一步翻译发布
rule_onestep() {
[ "$SRC_D" -eq 1 ] && [ "$PUB_A" -eq 1 ] \
&& ensure_identical SRC D PUB A \
&& check_category SRC D \
&& check_category PUB A \
&& [ "$TOTAL" -eq 2 ] && echo "匹配规则:一步翻译发布"
}
# 定义常见错误
# 未知错误