diff options
| author | srdusr <trevorgray@srdusr.com> | 2024-06-20 18:03:20 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2024-06-20 18:03:20 +0200 |
| commit | baccd0d8e6860c088f4720d78621cc3f9eaa9479 (patch) | |
| tree | 9aa01a9528fea08ef208cd15226f4ff1d05449c5 /install.sh | |
| parent | ff32d50e390e9f8a71d06593fbed37d16278b46d (diff) | |
| download | dotfiles-baccd0d8e6860c088f4720d78621cc3f9eaa9479.tar.gz dotfiles-baccd0d8e6860c088f4720d78621cc3f9eaa9479.zip | |
Testing
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |
