feat: Add support for using %OS_VERSION% in install url
This commit is contained in:
parent
a6d0d23c29
commit
ce30cc9684
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue