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}"