__ipset: explorer/content, a better way to find the start of the set membership
Don't count lines, as that seems inconsistant, instead find the start of the membership list by looking for "Members:"
This commit is contained in:
parent
49f62f0965
commit
fcd3b245e7
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@
|
|||
|
||||
name="$__object_id"
|
||||
if ipset -t list | grep -qP "Name: $name"; then
|
||||
ipset list "$name" | tail -n +9
|
||||
ipset list "$name" | sed '0,/^Members:/d'
|
||||
else
|
||||
echo "x_missing_x"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue