From e93e115522277249e941a0acc0861b77033f6b45 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sun, 19 Jul 2026 18:56:54 +0545 Subject: [PATCH] fix(install): skip already-installed packages via pacman -Qi Avoids AUR helper failures for packages that exist locally --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 2b27d74..549f459 100755 --- a/install.sh +++ b/install.sh @@ -320,7 +320,9 @@ failed_pkgs=() total=${#PACKAGES[@]} for pkg in "${PACKAGES[@]}"; do - if $AUR -S --needed --noconfirm "$pkg" >/dev/null 2>&1; then + if pacman -Qi "$pkg" &>/dev/null; then + installed=$((installed + 1)) + elif $AUR -S --needed --noconfirm "$pkg" >/dev/null 2>&1; then installed=$((installed + 1)) else failed=$((failed + 1))