From 91a9ead25634f4f5acb6144e9cebfd60680e2cfb Mon Sep 17 00:00:00 2001 From: RikudouPatrickstar <68163551+RikudouPatrickstar@users.noreply.github.com> Date: Wed, 9 Feb 2022 13:47:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=8E=B7=E5=8F=96=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E5=86=85=E6=A0=B8=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/getdate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/getdate.sh b/scripts/getdate.sh index d05f3b1..5ac16f4 100644 --- a/scripts/getdate.sh +++ b/scripts/getdate.sh @@ -799,7 +799,7 @@ update(){ [ "$clashcore" = "clashpre" ] && clash_n=$clashpre_v [ "$clashcore" = "clash.net" ] && clash_n=$clashnet_v [ "$clashcore" = "clash.meta" ] && clash_n=$meta_v - clash_v=$($bindir/clash -v 2>/dev/null | awk '{print $2}') + clash_v=$($bindir/clash -v 2>/dev/null | sed 's/ linux.*//;s/.* //') [ -z "$clash_v" ] && clash_v=$clashv echo -e "\033[30;47m欢迎使用更新功能:\033[0m" echo -----------------------------------------------