From 425e5bc4c30dda35c27d730a1c465120bc05821b Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Wed, 7 Apr 2021 13:31:43 -0400 Subject: [PATCH] add some quotes --- salt/common/tools/sbin/soup | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/salt/common/tools/sbin/soup b/salt/common/tools/sbin/soup index 4584c207a..6824ac8a2 100755 --- a/salt/common/tools/sbin/soup +++ b/salt/common/tools/sbin/soup @@ -421,18 +421,19 @@ up_2.3.2X_to_2.3.30() { } up_2.3.3X_to_2.3.50_repo() { - echo 'Performing 2.3.50 repo actions.' + echo "Performing 2.3.50 repo actions." if [[ "$OS" == "centos" ]]; then # Import GPG Keys gpg_rpm_import if [ $is_airgap -eq 1 ]; then - echo 'Deleting unneeded repo files.' + echo "Deleting unneeded repo files." 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 + for DELREPO in "${DELREPOS[@]}"; do if [[ -f "$DELREPO" ]]; then - rm -f /etc/yum.repos.d/"$DELREPO".repo + echo "Deleting $DELREPO.repo" + rm -f "/etc/yum.repos.d/$DELREPO.repo" fi done