From 645690e999c66653d892a3100a820f7d814b305d Mon Sep 17 00:00:00 2001 From: wulabing Date: Mon, 22 Feb 2021 01:12:00 +0800 Subject: [PATCH] Xray-1.0.13 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [fix] update 检测脚本 部分情况异常修正 --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 671c89f..63f4282 100644 --- a/install.sh +++ b/install.sh @@ -24,7 +24,7 @@ OK="${Green}[OK]${Font}" ERROR="${Red}[ERROR]${Font}" # 变量 -shell_version="1.0.12" +shell_version="1.0.13" github_branch="xray" version_cmp="/tmp/version_cmp.tmp" xray_conf_dir="/usr/local/etc/xray" @@ -231,7 +231,7 @@ function update_sh() { ol_version=$(curl -L -s https://raw.githubusercontent.com/wulabing/Xray_onekey/${github_branch}/install.sh | grep "shell_version=" | head -1 | awk -F '=|"' '{print $3}') echo "$ol_version" >$version_cmp echo "$shell_version" >>$version_cmp - if [[ "$shell_version" -ne "$(sort -rV $version_cmp | head -1)" ]]; then + if [[ "$shell_version" != "$(sort -rV $version_cmp | head -1)" ]]; then print_ok "存在新版本,是否更新 [Y/N]?" read -r update_confirm case $update_confirm in