aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2024-06-20 17:46:07 +0200
committersrdusr <trevorgray@srdusr.com>2024-06-20 17:46:07 +0200
commitaa1f727f5ac8787eaf34b10d8d4a1fe7011d1de2 (patch)
treea730b179ec786394ea8e106c9b21d73a5cec58b8
parent5c7c2680554fb20e08a5eb4949eca7d9d7a260ee (diff)
downloaddotfiles-aa1f727f5ac8787eaf34b10d8d4a1fe7011d1de2.tar.gz
dotfiles-aa1f727f5ac8787eaf34b10d8d4a1fe7011d1de2.zip
Testing
-rwxr-xr-xinstall.sh6
-rw-r--r--packages.yml1
2 files changed, 2 insertions, 5 deletions
diff --git a/install.sh b/install.sh
index edf8a83..329ce24 100755
--- a/install.sh
+++ b/install.sh
@@ -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[@]}"
diff --git a/packages.yml b/packages.yml
index 8bfa4c8..da03db2 100644
--- a/packages.yml
+++ b/packages.yml
@@ -154,7 +154,6 @@ PackageManager:
rust:
- matugen
-linux: []
arch:
- dkms
- linux