diff options
| author | srdusr <trevorgray@srdusr.com> | 2024-06-20 17:46:07 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2024-06-20 17:46:07 +0200 |
| commit | aa1f727f5ac8787eaf34b10d8d4a1fe7011d1de2 (patch) | |
| tree | a730b179ec786394ea8e106c9b21d73a5cec58b8 /install.sh | |
| parent | 5c7c2680554fb20e08a5eb4949eca7d9d7a260ee (diff) | |
| download | dotfiles-aa1f727f5ac8787eaf34b10d8d4a1fe7011d1de2.tar.gz dotfiles-aa1f727f5ac8787eaf34b10d8d4a1fe7011d1de2.zip | |
Testing
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -566,9 +566,6 @@ linux_install_packages() { fi # Read the package manager type detected by _distro_detect() - echo "Detected distribution: $_distro" - echo "Packages to install: ${packages[@]}" - case "$_distro" in "PACMAN") # Installation using Pacman @@ -616,7 +613,7 @@ linux_install_packages() { ;; "PORTAGE") # Try installing packages with emerge for Gentoo - local gentoo_packages=("$(yq e '.linux.gentoo[]' "$packages_file" 2>/dev/null | grep -v '^$')") + local gentoo_packages=("$(yq e '.gentoo[]' "$packages_file" 2>/dev/null)") for package in "${gentoo_packages[@]}"; do if [ "$package" != "" ]; then if ! equery list "$package" &>/dev/null; then @@ -634,6 +631,7 @@ linux_install_packages() { ;; esac + # Check if any packages failed to install if "$any_failures"; then echo "Failed to install the following packages:" printf '%s\n' "${failed_packages[@]}" |
