From 44e340914decbf0952c7e804d8a5a43733946b24 Mon Sep 17 00:00:00 2001 From: 233boy <31657650+233boy@users.noreply.github.com> Date: Mon, 29 May 2023 18:09:16 +0800 Subject: [PATCH] fix yum install epel-release --- install.sh | 2 +- v2ray.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 948dcf346..1741f2986 100644 --- a/install.sh +++ b/install.sh @@ -141,7 +141,7 @@ install_pkg() { msg warn "安装依赖包 >${pkg}" $cmd install -y $pkg &>/dev/null if [[ $? != 0 ]]; then - [[ $cmd == yum ]] && yum install epel-release -y &>/dev/null + [[ $cmd =~ yum ]] && yum install epel-release -y &>/dev/null $cmd update -y &>/dev/null $cmd install -y $pkg &>/dev/null [[ $? == 0 ]] && >$is_pkg_ok diff --git a/v2ray.sh b/v2ray.sh index 357f16192..28710b165 100644 --- a/v2ray.sh +++ b/v2ray.sh @@ -1,6 +1,6 @@ #!/bin/bash args=$@ -is_sh_ver=v4.08 +is_sh_ver=v4.09 . /etc/v2ray/sh/src/init.sh