Update rhel.sh

This commit is contained in:
midoks
2023-07-22 12:26:56 +08:00
parent 1e97929a24
commit f320d7cc69
+6
View File
@@ -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}"