2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-02 11:37:07 +00:00

Merge pull request #6659 from gurevichmark/go-xcat-zypper-msg2

go-xcat stderr messages to discard for SLES installation
This commit is contained in:
cxhong 2020-04-06 17:27:39 -04:00 committed by GitHub
commit 1f8814c72a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1285,7 +1285,7 @@ function remove_repo_zypper()
{
type zypper >/dev/null 2>&1 || return 255
local repo_id="$1"
zypper removerepo "${repo_id}" > /dev/null
zypper removerepo "${repo_id}" 2> /dev/null
case "${repo_id}" in
"xcat-core")
mv /etc/zypp/repos.d/xCAT-core.repo{,.nouse} 2>/dev/null