aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 7769e83..d514b1e 100755
--- a/install.sh
+++ b/install.sh
@@ -614,11 +614,16 @@ linux_install_packages() {
"PORTAGE")
# Try installing packages with emerge for Gentoo
if [[ -f "$packages_file" ]]; then
- gentoo_packages=("$(yq e '.gentoo[]' "$packages_file" 2>/dev/null)")
+ # Read package names from packages.yml under gentoo
+ gentoo_packages=()
+ while IFS= read -r package; do
+ gentoo_packages+=("$package")
+ done < <(yq e '.gentoo[]' "$packages_file" 2>/dev/null)
else
echo "Error: packages.yml not found."
return 1
fi
+
for package in "${gentoo_packages[@]}"; do
if [ "$package" != "" ]; then
if ! equery list "$package" &>/dev/null; then