From 16f9b314e841130494fa560b04c196216347debf Mon Sep 17 00:00:00 2001 From: juewuy Date: Sun, 20 Feb 2022 15:04:20 +0800 Subject: [PATCH] Merge branch 'master' of https://github.com/juewuy/ShellClash into master # Conflicts: # bin/version --- 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 -----------------------------------------------