Update identify.sh

This commit is contained in:
Xingyu.Wang 2021-09-12 08:36:16 +08:00 committed by GitHub
parent 440fca9fba
commit 65454d1785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,9 +24,9 @@ rule_bypass_check() {
[ -f /tmp/bypass ] && echo "匹配规则:绕过检查" [ -f /tmp/bypass ] && echo "匹配规则:绕过检查"
} }
# 添加原文:添加至少一篇原文 # 添加原文:只能添加一篇原文
rule_source_added() { rule_source_added() {
[ "$SRC_A" -ge 1 ] \ [ "$SRC_A" -eq 1 ] \
&& check_category SRC A \ && check_category SRC A \
&& [ "$TOTAL" -eq "$SRC_A" ] && echo "匹配规则:添加原文 ${SRC_A}" && [ "$TOTAL" -eq "$SRC_A" ] && echo "匹配规则:添加原文 ${SRC_A}"
} }