fix utils.sh remove
This commit is contained in:
@@ -81,8 +81,10 @@ remove_packages() {
|
|||||||
local packages=("$@")
|
local packages=("$@")
|
||||||
local to_remove=()
|
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
|
for pkg in "${packages[@]}"; do
|
||||||
if is_installed "$pkg"; then
|
if [ "$(pacman -Qq "$pkg" 2> /dev/null)" = "$pkg" ]; then
|
||||||
to_remove+=("$pkg")
|
to_remove+=("$pkg")
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user