Skip to content

Commit

Permalink
up 更新输出
Browse files Browse the repository at this point in the history
  • Loading branch information
seagullz4 authored Jan 27, 2024
1 parent 80205d8 commit 0c90c88
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,14 @@ echo "$(random_color '>>>>>>>>>>>>>>>>>>>>')"
;;

5)
get_updated_version() {
if [ -x "/root/hy3/hysteria-linux-$arch" ]; then
version2="$("/root/hy3/hysteria-linux-$arch" version | grep Version | grep -o 'v[.0-9]*')"
else
version2="你还没有安装,老登"
fi
}

updatehy2 () {
process_name="hysteria-linux-$arch"

Expand Down Expand Up @@ -255,6 +263,8 @@ echo "$(random_color '正在更新中,别急,老登')"
sleep 1
updatehy2 > /dev/null 2>&1
echo "$(random_color '更新完成,老登')"
get_updated_version
echo "您当前的更新后hy2版本:$version2"
exit
;;
*)
Expand Down

0 comments on commit 0c90c88

Please sign in to comment.