Add the do

This commit is contained in:
Mike Reeves
2021-04-06 15:58:08 -04:00
parent 92768ecd08
commit b50700114c

View File

@@ -422,8 +422,8 @@ 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[@]}";
rm /etc/yum.repos.d/$DELREPO
for DELREPO in "${DELREPOS[@]}"; do
rm /etc/yum.repos.d/"$DELREPO"
done
# Copy the new repo file if not airgap