Skip to content

Commit 794aeac

Browse files
authored
Update shadowsocks-rust.sh
1 parent 13b371a commit 794aeac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shadowsocks-rust.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ Status(){
513513

514514
Update_Shell(){
515515
echo -e "当前版本为 [ ${sh_ver} ],开始检测最新版本..."
516-
sh_new_ver=$(wget -qO- https://raw.githubusercontent.com/myeveryheart/shadowsocks-rust/main/shadowsocks-rust.sh | grep "sh_ver=" | cut -d '=' -f 2 | tr -d '"')
516+
sh_new_ver=$(wget -qO- https://raw.githubusercontent.com/myeveryheart/shadowsocks-rust/main/shadowsocks-rust.sh | grep "sh_ver=" | cut -d '=' -f 2 | tr -d '"' | head -n 1)
517517
[[ -z ${sh_new_ver} ]] && echo -e "${Error} 检测最新版本失败 !" && Start_Menu
518518
if [[ ${sh_new_ver} != ${sh_ver} ]]; then
519519
echo -e "发现新版本[ ${sh_new_ver} ],是否更新?[Y/n]"

0 commit comments

Comments
 (0)