依赖补充 脚本更新bug修复

pull/355/head
wulabing 2019-12-30 17:56:36 +08:00
parent d749406b2c
commit 934eae5cce
1 changed files with 1 additions and 1 deletions

View File

@ -731,7 +731,7 @@ 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 | grep "shell_version=" | head -1 |awk -F '=|"' '{print $3}' 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 "$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" ]