From f7d81afde86659949cb61d3c0ada87ef46a475df Mon Sep 17 00:00:00 2001 From: darksun Date: Wed, 2 Jan 2019 16:24:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E7=BF=BB=E8=AF=91=E7=9A=84=E6=AD=A3=E5=88=99=E8=A1=A8?= =?UTF-8?q?=E8=BE=BE=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/status/status.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/status/status.sh b/scripts/status/status.sh index 9705c3cbc0..02c46cfc7e 100755 --- a/scripts/status/status.sh +++ b/scripts/status/status.sh @@ -5,13 +5,7 @@ cd "$(dirname "$0")/../.." # 进入TP root function file-translating-p () { local file="$*" - if head -n 1 "${file}" |grep '\[^#\]:'>/dev/null 2>&1 ;then - # 新模板 - head -n 12 "$file" |grep -v '\[^#\]:' |grep -E -i "translat|fanyi|翻译" >/dev/null 2>&1 - else - # 旧模板 - head -n 3 "$file" |grep -E -i "translat|fanyi|翻译" >/dev/null 2>&1 - fi + head -n 3 "$file" | grep -iE "^[^[].*translat|^\[#\]: translator: \([^[:space:]]+\)|fanyi|翻译" >/dev/null 2>&1 } function get_status_of() {