Skip to content

Commit

Permalink
Fixed a logic error. ref: #121
Browse files Browse the repository at this point in the history
  • Loading branch information
loyess committed Sep 14, 2023
1 parent 4769470 commit 4c7c385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ install_dependencies(){
fi
[ ! -f /etc/yum.repos.d/epel.repo ] && _echo -e "安装EPEL存储库失败,请检查它。" && exit 1
[ ! "$(command -v yum-config-manager)" ] && yum install -y yum-utils > /dev/null 2>&1
if centosversion 8; then
if version_ge $(get_version) 8; then
[ x"$(yum repolist epel | grep -w epel | awk '{print $NF}')" != x"enabled" ] && yum-config-manager --enable epel > /dev/null 2>&1
else
[ x"$(yum-config-manager epel | grep -w enabled | awk '{print $3}')" != x"True" ] && yum-config-manager --enable epel > /dev/null 2>&1
Expand Down

0 comments on commit 4c7c385

Please sign in to comment.