From 3e928ed92fccf4eb6fb02afbfbdfb9de8ac70058 Mon Sep 17 00:00:00 2001 From: TheSpad Date: Sat, 10 Sep 2022 16:33:05 +0100 Subject: [PATCH] Fix package reads --- root/etc/s6-overlay/s6-rc.d/init-mods-package-install/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/etc/s6-overlay/s6-rc.d/init-mods-package-install/run b/root/etc/s6-overlay/s6-rc.d/init-mods-package-install/run index 254b3dc..90b4b2e 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-mods-package-install/run +++ b/root/etc/s6-overlay/s6-rc.d/init-mods-package-install/run @@ -2,7 +2,7 @@ # shellcheck shell=bash if [[ -f "/mod-repo-packages-to-install.list" ]]; then - IFS=' ' read -ra REPO_PACKAGES <<< "$(cat /mod-repo-packages-to-install.list)" + IFS=' ' read -ra REPO_PACKAGES <<< "$(tr '\n' ' ' < /mod-repo-packages-to-install.list)" if [[ ${#REPO_PACKAGES[@]} -ne 0 ]] && [[ ${REPO_PACKAGES[*]} != "" ]]; then echo "[mod-init] **** Installing all mod packages ****" if [[ -f /usr/bin/apt ]]; then @@ -18,7 +18,7 @@ if [[ -f "/mod-repo-packages-to-install.list" ]]; then fi if [[ -f "/mod-pip-packages-to-install.list" ]]; then - IFS=' ' read -ra PIP_PACKAGES <<< "$(cat /mod-pip-packages-to-install.list)" + IFS=' ' read -ra PIP_PACKAGES <<< "$(tr '\n' ' ' < /mod-pip-packages-to-install.list)" if [[ ${#PIP_PACKAGES[@]} -ne 0 ]] && [[ ${PIP_PACKAGES[*]} != "" ]]; then echo "[mod-init] **** Installing all pip packages ****" python3 -m pip install -U pip wheel setuptools