fix(install): skip already-installed packages via pacman -Qi

Avoids AUR helper failures for packages that exist locally
This commit is contained in:
sankalp committed 2026-07-19 18:56:54 +05:45
1 parent d4f4850562
commit e93e115522
1 file changed
+3 -1
+3 -1
View File
@@ -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))