__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:
mhameed 2021-01-09 10:25:53 +00:00
parent 49f62f0965
commit fcd3b245e7
1 changed files with 1 additions and 1 deletions

View File

@ -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