]> 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 19:54:42 +0000 (19:54 +0000)
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\";

bin/tests/system/nzd2nzf/tests.sh

index 4389fcc6f7d855c0331a71b44acb08c62d9749c0..9ed144c76dfbddc3eb7e71310478b0e3563d190b 100644 (file)
@@ -34,8 +34,7 @@ status=$((status+ret))
 
 n=$((n+1))
 echo_i "adding a new zone into default NZD using rndc addzone ($n)"
-rndccmd 10.53.0.1 addzone "added.example { type primary; file \"added.db\";
-};" 2>&1 | sed 's/^/I:ns1 /' | cat_i
+rndccmd 10.53.0.1 addzone 'added.example { type primary; file "added.db"; };' 2>&1 | sed 's/^/I:ns1 /' | cat_i
 sleep 2
 
 n=$((n+1))