summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Goiffon <dev@z3bra.org>2022-11-21 14:43:29 +0100
committerWilly Goiffon <dev@z3bra.org>2022-11-21 14:43:31 +0100
commitdfe2032d4ffa7fc7720f48ee3978de34ba23d9e9 (patch)
tree861e9ae08ec12f46baf63d618bd38d841bed8b3b
parentb6e13264e1b65b7b5f6fc20f3258389a35e07367 (diff)
Strictly follow BRE to generate nodes.hHEADmaster
The '+' sign is not part of BRE, thus generating an invalid nodes.h on OpenBSD.
-rwxr-xr-xnodegen2
1 files changed, 1 insertions, 1 deletions
diff --git a/nodegen b/nodegen
index 12c2fec..57afacd 100755
--- a/nodegen
+++ b/nodegen
@@ -7,6 +7,6 @@ jq --tab '[.nodes[] |
select(.last_ping > 0) |
select(.tcp_ports | length > 0) |
{".addr4": .ipv4, ".addr6": .ipv6, ".udp_port": .port, ".tcp_port": .tcp_ports[0], ".idstr": .public_key}]' |
-sed 's/"-"/NULL/; s/"NONE"/NULL/; s/"\(\.[0-9a-z_]\+\)":/\1 =/; 1d; $d'
+sed 's/"-"/NULL/; s/"NONE"/NULL/; s/"\(\.[0-9a-z_][0-9a-z_]*\)":/\1 =/; 1d; $d'
echo '};'