Skip to content

Commit

Permalink
Add .editorconfig for shfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
wfg committed Mar 23, 2024
1 parent b704b05 commit 94a6cb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[[*.sh]]
indent_style = space
indent_size = 4

binary_next_line = true
2 changes: 1 addition & 1 deletion build/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}"
Expand Down

0 comments on commit 94a6cb9

Please sign in to comment.