Fix uninstall gentoo packages

The square brackets cause the check to fail because of the piped
grep.
Removing them works just fine.

Change-Id: I85dfaa436d09edf958315579c7050165b80bf721
This commit is contained in:
Riccardo Pittau 2024-06-11 16:40:43 +02:00
parent ac180b9ac6
commit 5b2aef2018

View File

@ -138,7 +138,7 @@ else
for PKG in ${PKGS}; do for PKG in ${PKGS}; do
# the '^' and '$' in the search query are important so we don't get matched to # the '^' and '$' in the search query are important so we don't get matched to
# packages that include our package name as part of their package name # packages that include our package name as part of their package name
if [ ! emerge --search "^${PKG}$" | grep -q 'Not Installed' ]; then if ! emerge --search "^${PKG}$" | grep -q 'Not Installed' ; then
CLEANED_PKGS+=("${PKG}") CLEANED_PKGS+=("${PKG}")
fi fi
done done