From 311dfe2860f44cd2b686ff3e3db6c763a082ae36 Mon Sep 17 00:00:00 2001 From: ER Date: Sat, 9 Sep 2023 13:05:54 +0300 Subject: [PATCH] chore: don't use _STR like array --- modules/rpm-ostree/rpm-ostree.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/rpm-ostree/rpm-ostree.sh b/modules/rpm-ostree/rpm-ostree.sh index c4ee3f78fa..995904f404 100644 --- a/modules/rpm-ostree/rpm-ostree.sh +++ b/modules/rpm-ostree/rpm-ostree.sh @@ -46,13 +46,13 @@ if [[ ${#INSTALL[@]} -gt 0 && ${#REMOVE[@]} -gt 0 ]]; then echo "Installing: ${INSTALL_STR[*]}" echo "Removing: ${REMOVE_STR[*]}" # Doing both actions in one command allows for replacing required packages with alternatives - rpm-ostree override remove ${REMOVE_STR[@]} $(printf -- "--install=%s " ${INSTALL_STR[@]}) + rpm-ostree override remove $REMOVE_STR $(printf -- "--install=%s " $INSTALL_STR) elif [[ ${#INSTALL[@]} -gt 0 ]]; then echo "Installing RPMs" echo "Installing: ${INSTALL_STR[*]}" - rpm-ostree install ${INSTALL_STR[@]} + rpm-ostree install $INSTALL_STR elif [[ ${#INSTALL[@]} -gt 0 ]]; then echo "Removing RPMs" echo "Removing: ${REMOVE_STR[*]}" - rpm-ostree override remove ${REMOVE_STR[@]} + rpm-ostree override remove $REMOVE_STR fi