From d2c8d2d7cbe3d73259265b0788ed7cfe2d4efdbf Mon Sep 17 00:00:00 2001 From: Misaka-blog Date: Wed, 3 Apr 2024 15:46:33 +0800 Subject: [PATCH] v2.2.8 --- config/version | 2 +- install.sh | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/config/version b/config/version index b539adea5..eb430cbb1 100644 --- a/config/version +++ b/config/version @@ -1 +1 @@ -2.2.7 \ No newline at end of file +2.2.8 \ No newline at end of file diff --git a/install.sh b/install.sh index ba75a0389..ad4447460 100644 --- a/install.sh +++ b/install.sh @@ -149,10 +149,10 @@ install_x-ui() { if [ $# == 0 ]; then last_version=$(curl -Ls "https://api.github.com/repos/Misaka-blog/3x-ui/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') if [[ ! -n "$last_version" ]]; then - echo -e "${red}Failed to fetch x-ui version, it maybe due to Github API restrictions, please try it later${plain}" + echo -e "${red}获取 x-ui 版本失败,可能是 Github API 限制,请稍后再试${plain}" exit 1 fi - echo -e "Got x-ui latest version: ${last_version}, beginning the installation..." + echo -e "获取 x-ui 最新版本:${last_version},开始安装..." wget -N --no-check-certificate -O /usr/local/x-ui-linux-$(arch).tar.gz https://github.com/Misaka-blog/3x-ui/releases/download/${last_version}/x-ui-linux-$(arch).tar.gz if [[ $? -ne 0 ]]; then echo -e "${red}下载 x-ui 失败, 请检查服务器是否可以连接至 GitHub ${plain}" @@ -161,7 +161,7 @@ install_x-ui() { else last_version=$1 url="https://github.com/Misaka-blog/3x-ui/releases/download/${last_version}/x-ui-linux-$(arch).tar.gz" - echo -e "Beginning to install x-ui $1" + echo -e "开始安装 x-ui $1" wget -N --no-check-certificate -O /usr/local/x-ui-linux-$(arch).tar.gz ${url} if [[ $? -ne 0 ]]; then echo -e "${red}下载 x-ui $1 失败, 请检查此版本是否存在 ${plain}" @@ -214,6 +214,5 @@ install_x-ui() { echo -e "----------------------------------------------" } -echo -e "${green}Running...${plain}" install_base install_x-ui $1 \ No newline at end of file