__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

View file

@ -20,7 +20,7 @@
name="$__object_id" name="$__object_id"
if ipset -t list | grep -qP "Name: $name"; then if ipset -t list | grep -qP "Name: $name"; then
ipset list "$name" | tail -n +9 ipset list "$name" | sed '0,/^Members:/d'
else else
echo "x_missing_x" echo "x_missing_x"
fi fi