fix utils.sh remove

This commit is contained in:
2026-10-29 13:04:02 -06:00
parent eeeef3f61b
commit f1d3053574
+3 -1
View File
@@ -81,8 +81,10 @@ remove_packages() {
local packages=("$@")
local to_remove=()
# Match the exact name: pacman -Q also finds a package that provides it, such
# as herdr-bin for herdr, which pacman -R won't remove by that name
for pkg in "${packages[@]}"; do
if is_installed "$pkg"; then
if [ "$(pacman -Qq "$pkg" 2> /dev/null)" = "$pkg" ]; then
to_remove+=("$pkg")
fi
done