From d749406b2c34a631cb5c7d2b5d1441e45363e78c Mon Sep 17 00:00:00 2001 From: wulabing <91d$5gKrmVShheJf> Date: Mon, 30 Dec 2019 17:55:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9D=E8=B5=96=E8=A1=A5=E5=85=85=20?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E6=9B=B4=E6=96=B0bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 083a2d5..d41d631 100644 --- a/install.sh +++ b/install.sh @@ -168,7 +168,7 @@ dependency_install(){ judge "编译工具包 安装" if [[ "${ID}" == "centos" ]];then - ${INS} -y install pcre pcre-devel zlib-devel + ${INS} -y install pcre pcre-devel zlib-devel epel-release else ${INS} -y install libpcre3 libpcre3-dev zlib1g-dev dbus fi @@ -731,10 +731,9 @@ install_v2_h2(){ } update_sh(){ - ol_version=$(curl -L -s https://raw.githubusercontent.com/wulabing/V2Ray_ws-tls_bash_onekey/master/install.sh \ - | grep "shell_version=" | awk -F "=" '{print $2}') - echo $ol_version > $version_cmp - echo $shell_version >> $version_cmp + ol_version=$(curl -L -s https://raw.githubusercontent.com/wulabing/V2Ray_ws-tls_bash_onekey/master/install.sh | grep "shell_version=" | head -1 |awk -F '=|"' '{print $3}' + echo "$ol_version" > $version_cmp + echo "$shell_version" >> $version_cmp if [ "$(sort -rV $version_cmp | head -1)" -gt "$shell_version" ] then echo -e "${OK} ${Green} 存在新版本,是否更新 [Y/N]? ${Font}"