]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Join two rndc lines not to confuse checkbashisms
authorMichal Nowak <mnowak@isc.org>
Tue, 2 Aug 2022 13:36:26 +0000 (15:36 +0200)
committerMichal Nowak <mnowak@isc.org>
Mon, 14 Nov 2022 22:13:03 +0000 (23:13 +0100)
checkbashisms gets confused by the rndc command being on two lines:

    possible bashism in bin/tests/system/nzd2nzf/tests.sh line 37 (type):
    rndccmd 10.53.0.1 addzone "added.example { type primary; file \"added.db\";

(cherry picked from commit 9eb2f6b0e85ffceb96d5c51dd56e430faf5ba849)

bin/tests/system/nzd2nzf/tests.sh

index ec329c580e91c4935b20addf1cf4f381bd16e7bd..2e30dd140aac1e03a1741dd475cb5a596ab0e570 100644 (file)
@@ -30,8 +30,7 @@ status=`expr $status + $ret`
 
 n=`expr $n + 1`
 echo_i "adding a new zone into default NZD using rndc addzone ($n)"
-$RNDCCMD 10.53.0.1 addzone "added.example { type master; file \"added.db\";
-};" 2>&1 | sed 's/^/I:ns1 /' | cat_i
+$RNDCCMD 10.53.0.1 addzone "added.example { type master; file \"added.db\"; };" 2>&1 | sed 's/^/I:ns1 /' | cat_i
 sleep 2
 
 n=`expr $n + 1`