Make grep more specific

package name should be an exact match, not a substring
This commit is contained in:
marcoduif 2022-10-07 07:22:31 +00:00
parent 90488d2e9e
commit ffeaafe9b6

View file

@ -24,4 +24,4 @@ else
name="$__object_id"
fi
apt-mark showhold | grep -Fq "$name" && echo hold || echo unhold
apt-mark showhold | grep -q "^${name}$" && echo hold || echo unhold