Merge pull request #121 from RikudouPatrickstar/patch-1

修正 Clash 核心版本显示
This commit is contained in:
juewuy
2022-02-11 11:13:22 +08:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
clashnet_v=1.7.6
clashnet_v=v1.7.6
GeoIP_v=202201280303
clashpre_v=1.7.1
clash_v=1.7.1
meta_v=1.9.0dev
clashpre_v=2021.09.15
clash_v=v1.7.1
meta_v=develop-76dcceb
versionsh=1.5.1

View File

@@ -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 -----------------------------------------------