From c4f01192763e4f661eee745777a25f6802b1ed9a Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Wed, 7 Apr 2021 13:51:40 -0400 Subject: [PATCH] fix check if repo file exists --- salt/common/tools/sbin/soup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/soup b/salt/common/tools/sbin/soup index 6824ac8a2..6448c432f 100755 --- a/salt/common/tools/sbin/soup +++ b/salt/common/tools/sbin/soup @@ -431,7 +431,7 @@ up_2.3.3X_to_2.3.50_repo() { 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 - if [[ -f "$DELREPO" ]]; then + if [[ -f "/etc/yum.repos.d/$DELREPO.repo" ]]; then echo "Deleting $DELREPO.repo" rm -f "/etc/yum.repos.d/$DELREPO.repo" fi