diff --git a/modules/rpm-ostree/rpm-ostree.sh b/modules/rpm-ostree/rpm-ostree.sh index 50384a1..021cd4c 100644 --- a/modules/rpm-ostree/rpm-ostree.sh +++ b/modules/rpm-ostree/rpm-ostree.sh @@ -37,8 +37,9 @@ get_yaml_array REMOVE '.remove[]' "$1" if [[ ${#INSTALL[@]} -gt 0 ]]; then for PKG in "${INSTALL[@]}"; do if [[ "$PKG" =~ ^https?:\/\/.* ]]; then - echo "Installing directly from URL: ${PKG}" - rpm-ostree install "$PKG" + REPLACED_PKG="${PKG//%OS_VERSION%/${OS_VERSION}}" + echo "Installing directly from URL: ${REPLACED_PKG}" + rpm-ostree install "$REPLACED_PKG" INSTALL=( "${INSTALL[@]/$PKG}" ) # delete URL from install array fi done