From f1d30535746be89cf1f76d13ce466cd35c18efce Mon Sep 17 00:00:00 2001 From: David Young Date: Thu, 29 Oct 2026 13:04:02 -0600 Subject: [PATCH] fix utils.sh remove --- utils.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils.sh b/utils.sh index b595aa9..ce42c8e 100755 --- a/utils.sh +++ b/utils.sh @@ -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