git » chasquid » commit 40edb42

test/t-22-forward_via: Group shell redirections

author Alberto Bertogli
2025-10-24 11:42:35 UTC
committer Alberto Bertogli
2025-10-24 11:42:35 UTC
parent 5c2566c9b16299009b1405a9b5115fae2df55dc7

test/t-22-forward_via: Group shell redirections

This patch groups a series of commands that redirect to a file into a
single grouped redirect, for readability reasons.

Suggested by shellcheck SC2129.

test/t-22-forward_via/run.sh +5 -3

diff --git a/test/t-22-forward_via/run.sh b/test/t-22-forward_via/run.sh
index 1d7c22b..a444791 100755
--- a/test/t-22-forward_via/run.sh
+++ b/test/t-22-forward_via/run.sh
@@ -38,9 +38,11 @@ CONFDIR=external chasquid-util dkim-keygen --algo=ed25519 \
 # Launch minidns in the background using our configuration.
 # Augment the zones with the dkim ones.
 cp zones .zones
-CONFDIR=primary   chasquid-util dkim-dns dodo | sed 's/"//g' >> .zones
-CONFDIR=secondary chasquid-util dkim-dns dodo | sed 's/"//g' >> .zones
-CONFDIR=external  chasquid-util dkim-dns kiwi | sed 's/"//g' >> .zones
+{
+	CONFDIR=primary   chasquid-util dkim-dns dodo | sed 's/"//g'
+	CONFDIR=secondary chasquid-util dkim-dns dodo | sed 's/"//g'
+	CONFDIR=external  chasquid-util dkim-dns kiwi | sed 's/"//g'
+} >> .zones
 minidns_bg --addr=":9053" -zones=.zones >> .minidns.log 2>&1