Files
2022-08-26 12:52:51 -04:00

17 lines
415 B
Plaintext
Executable File

#!/usr/bin/with-contenv bash
# Exit if no installable packages are provided
if [ -z ${INSTALL_PACKAGES+x} ]; then
echo "**** No packages to install ****"
exit 0
fi
#Split list of packages on delimiter '|'
IFS='|'
INSTALL_PACKAGES=(${INSTALL_PACKAGES})
for PKG in "${INSTALL_PACKAGES[@]}"; do
echo "**** Adding ${PKG} to install list ****"
echo "${PKG}" >> /mod-repo-packages-to-install.list
done