fix(rpm-ostree): Syntax error due to forgotten fi

This commit is contained in:
fiftydinar 2024-07-31 19:16:50 +02:00
parent b05f4e85ff
commit 93ff0d9eb9

View file

@ -54,19 +54,20 @@ LOCAL_INSTALL=false
# Install and remove RPM packages # Install and remove RPM packages
# Sort classic, URL & local packages # Sort classic, URL & local packages
if [[ ${#INSTALL[@]} -gt 0 ]]; then if [[ ${#INSTALL[@]} -gt 0 ]]; then
for PKG in "${INSTALL[@]}"; do for PKG in "${INSTALL[@]}"; do
if [[ "$PKG" =~ ^https?:\/\/.* ]]; then if [[ "$PKG" =~ ^https?:\/\/.* ]]; then
VERSION_SUBSTITUTED_PKG="${PKG//%OS_VERSION%/${OS_VERSION}}" VERSION_SUBSTITUTED_PKG="${PKG//%OS_VERSION%/${OS_VERSION}}"
HTTPS_INSTALL=true HTTPS_INSTALL=true
HTTPS_PKG+=("${VERSION_SUBSTITUTED_PKG}") HTTPS_PKG+=("${VERSION_SUBSTITUTED_PKG}")
elif [[ ! "$PKG" =~ ^https?:\/\/.* ]] && [[ -f "${CONFIG_DIRECTORY}/rpm-ostree/${PKG}" ]]; then elif [[ ! "$PKG" =~ ^https?:\/\/.* ]] && [[ -f "${CONFIG_DIRECTORY}/rpm-ostree/${PKG}" ]]; then
LOCAL_INSTALL=true LOCAL_INSTALL=true
LOCAL_PKG+=("${CONFIG_DIRECTORY}/rpm-ostree/${PKG}") LOCAL_PKG+=("${CONFIG_DIRECTORY}/rpm-ostree/${PKG}")
else else
CLASSIC_INSTALL=true CLASSIC_INSTALL=true
CLASSIC_PKG+=("${PKG}") CLASSIC_PKG+=("${PKG}")
fi fi
done done
fi
# The installation is done with some wordsplitting hacks # The installation is done with some wordsplitting hacks
# because of errors when doing array destructuring at the installation step. # because of errors when doing array destructuring at the installation step.