From f320d7cc69a7f8975136b0546b8f9f8cbf4469a0 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 22 Jul 2023 12:26:56 +0800 Subject: [PATCH] Update rhel.sh --- scripts/install/rhel.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/install/rhel.sh b/scripts/install/rhel.sh index 1039590ee..9f7c388a4 100644 --- a/scripts/install/rhel.sh +++ b/scripts/install/rhel.sh @@ -151,6 +151,12 @@ if [ "$VERSION_ID" -ge "8" ];then REPOS="${REPOS},${REPO_VAR}" fi done + + if [ "$REPOS" == "--enablerepo=" ];then + # if not find, reset emtpy + REPOS='' + fi + REPOS=${REPOS//=,/=} echo "REPOS:${REPOS}"