diff --git a/salt/common/tools/sbin/soup b/salt/common/tools/sbin/soup index b4cbc43ec..46aa0c650 100755 --- a/salt/common/tools/sbin/soup +++ b/salt/common/tools/sbin/soup @@ -423,7 +423,7 @@ up_2.3.3X_to_2.3.50() { DELREPOS=('CentOS-Base' 'CentOS-CR' 'CentOS-Debuginfo' 'docker-ce' 'CentOS-fasttrack' 'CentOS-Media' 'CentOS-Sources' 'CentOS-Vault' 'CentOS-x86_64-kernel' 'epel' 'epel-testing' 'saltstack' 'wazuh') for DELREPO in "${DELREPOS[@]}"; do - rm /etc/yum.repos.d/"$DELREPO".repo + rm -f /etc/yum.repos.d/"$DELREPO".repo done # Copy the new repo file if not airgap