依赖补充 脚本更新bug修复

pull/355/head
wulabing 2019-12-30 17:55:26 +08:00
parent 5e657af4d4
commit d749406b2c
1 changed files with 4 additions and 5 deletions

View File

@ -168,7 +168,7 @@ dependency_install(){
judge "编译工具包 安装" judge "编译工具包 安装"
if [[ "${ID}" == "centos" ]];then if [[ "${ID}" == "centos" ]];then
${INS} -y install pcre pcre-devel zlib-devel ${INS} -y install pcre pcre-devel zlib-devel epel-release
else else
${INS} -y install libpcre3 libpcre3-dev zlib1g-dev dbus ${INS} -y install libpcre3 libpcre3-dev zlib1g-dev dbus
fi fi
@ -731,10 +731,9 @@ install_v2_h2(){
} }
update_sh(){ update_sh(){
ol_version=$(curl -L -s https://raw.githubusercontent.com/wulabing/V2Ray_ws-tls_bash_onekey/master/install.sh \ 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}'
| grep "shell_version=" | awk -F "=" '{print $2}') echo "$ol_version" > $version_cmp
echo $ol_version > $version_cmp echo "$shell_version" >> $version_cmp
echo $shell_version >> $version_cmp
if [ "$(sort -rV $version_cmp | head -1)" -gt "$shell_version" ] if [ "$(sort -rV $version_cmp | head -1)" -gt "$shell_version" ]
then then
echo -e "${OK} ${Green} 存在新版本,是否更新 [Y/N]? ${Font}" echo -e "${OK} ${Green} 存在新版本,是否更新 [Y/N]? ${Font}"