correct match if / is the last char of a url and the end of the line
This commit is contained in:
parent
7674cf139b
commit
ab6502c9df
1 changed files with 1 additions and 1 deletions
|
@ -26,4 +26,4 @@ if [ -f "$__object/parameter/uri" ]; then
|
||||||
else
|
else
|
||||||
uri="$__object_id"
|
uri="$__object_id"
|
||||||
fi
|
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]' )
|
||||||
|
|
Loading…
Reference in a new issue