mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-05 12:57:45 +00:00
fix: newlines in rpm-ostree cmds errors
i'm not sure if this approach is better than iterating over the array but it should now work in the same way it did previously
This commit is contained in:
@@ -15,13 +15,15 @@ fi
|
||||
get_yaml_array INSTALL '.install[]' "$1"
|
||||
if [[ ${#INSTALL[@]} -gt 0 ]]; then
|
||||
echo "Installing RPMs"
|
||||
echo "Installing: ${INSTALL[*]}"
|
||||
rpm-ostree install "${INSTALL[@]}"
|
||||
INSTALL_STR=$(echo "${INSTALL[*]}" | tr -d '\n')
|
||||
echo "Installing: $INSTALL_STR"
|
||||
rpm-ostree install "$INSTALL_STR"
|
||||
fi
|
||||
|
||||
get_yaml_array REMOVE '.remove[]' "$1"
|
||||
if [[ ${#REMOVE[@]} -gt 0 ]]; then
|
||||
echo "Removing RPMs"
|
||||
echo "Removing: ${REMOVE[*]}"
|
||||
rpm-ostree override remove "${REMOVE[@]}"
|
||||
REMOVE_STR=$(echo "${REMOVE[*]}" | tr -d '\n')
|
||||
echo "Removing: $REMOVE"
|
||||
rpm-ostree override remove "$REMOVE_STR"
|
||||
fi
|
||||
Reference in New Issue
Block a user