correct match if / is the last char of a url and the end of the line

This commit is contained in:
Daniel Heule 2014-06-25 00:16:40 +02:00
parent 7674cf139b
commit ab6502c9df

View file

@ -26,4 +26,4 @@ if [ -f "$__object/parameter/uri" ]; then
else
uri="$__object_id"
fi
echo $(zypper lr -u | grep -E "\<$uri\>" | cut -d'|' -f 1 | grep -E '^[0-9]' )
echo $(zypper lr -u | grep -F "$uri" | cut -d'|' -f 1 | grep -E '^[0-9]' )