Skip to content

Commit

Permalink
fix(rpm-ostree): %OS_VERSION% not properly substituted for URL when…
Browse files Browse the repository at this point in the history
… doing install only

Fixes: #342
  • Loading branch information
fiftydinar authored Oct 12, 2024
1 parent 4d53e81 commit 8124abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/rpm-ostree/rpm-ostree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ LOCAL_INSTALL=false
if [[ ${#INSTALL_PKGS[@]} -gt 0 ]]; then
for PKG in "${INSTALL_PKGS[@]}"; do
if [[ "${PKG}" =~ ^https?:\/\/.* ]]; then
VERSION_SUBSTITUTED_PKG="${PKG//%OS_VERSION%/${OS_VERSION}}"
PKG="${PKG//%OS_VERSION%/${OS_VERSION}}"
HTTPS_INSTALL=true
HTTPS_PKGS+=("${VERSION_SUBSTITUTED_PKG}")
HTTPS_PKGS+=("${PKG}")
elif [[ ! "${PKG}" =~ ^https?:\/\/.* ]] && [[ -f "${CONFIG_DIRECTORY}/rpm-ostree/${PKG}" ]]; then
LOCAL_INSTALL=true
LOCAL_PKGS+=("${CONFIG_DIRECTORY}/rpm-ostree/${PKG}")
Expand Down

0 comments on commit 8124abb

Please sign in to comment.