Skip to content

Commit 1948bf0

Browse files
committed
fix yum install epel-release
1 parent 57ae3a9 commit 1948bf0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ install_pkg() {
141141
msg warn "安装依赖包 >${pkg}"
142142
$cmd install -y $pkg &>/dev/null
143143
if [[ $? != 0 ]]; then
144-
[[ $cmd == yum ]] && yum install epel-release -y &>/dev/null
144+
[[ $cmd =~ yum ]] && yum install epel-release -y &>/dev/null
145145
$cmd update -y &>/dev/null
146146
$cmd install -y $pkg &>/dev/null
147147
[[ $? == 0 ]] && >$is_pkg_ok

xray.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

33
args=$@
4-
is_sh_ver=v1.08
4+
is_sh_ver=v1.09
55

66
. /etc/xray/sh/src/init.sh

0 commit comments

Comments
 (0)