fix(install): skip already-installed packages via pacman -Qi
Avoids AUR helper failures for packages that exist locally
This commit is contained in:
1 file changed
+3
-1
+3
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user