Add .editorconfig for shfmt

This commit is contained in:
Wyatt Gill
2024-03-23 10:09:23 -05:00
parent b704b050f3
commit 94a6cb9e11
2 changed files with 6 additions and 1 deletions

5
.editorconfig Normal file
View File

@@ -0,0 +1,5 @@
[[*.sh]]
indent_style = space
indent_size = 4
binary_next_line = true

View File

@@ -39,7 +39,7 @@ iptables --insert OUTPUT \
local_docker_nets=()
for ifname in $(ip -4 -json link show type veth | jq --raw-output '.[].ifname'); do
for net in $(ip -4 -json address show dev "${ifname}" | jq --raw-output '.[].addr_info[] | "\(.local)/\(.prefixlen)"'); do
local_docker_nets+=( "${net}" )
local_docker_nets+=("${net}")
done
done
printf -v dest_nets '%s,' "${local_docker_nets[@]}"