]> git.ipfire.org Git - thirdparty/bind9.git/commit
Rename $HOSTNAME to $HOST_NAME to silence checkbashisms
authorMichal Nowak <mnowak@isc.org>
Thu, 8 Sep 2022 15:12:46 +0000 (17:12 +0200)
committerMichal Nowak <mnowak@isc.org>
Mon, 14 Nov 2022 19:54:42 +0000 (19:54 +0000)
commitae33a8ddeae6bc1398377fec8277ea50cc7dfc00
tree17c51afa5cfff59f724dc36b9ef84a231adaa6e5
parent00c3b1e30972fe41ea37da15c0b7995a3d312620
Rename $HOSTNAME to $HOST_NAME to silence checkbashisms

checkbashisms warns about possible reliance on HOSTNAME environmental
variable which Bash sets to the name of the current host, and some
commands may leverage it:

    possible bashism in builtin/tests.sh line 199 ($HOST(TYPE|NAME)):
    grep "^\"$HOSTNAME\"$" dig.out.ns1.$n > /dev/null || ret=1
    possible bashism in builtin/tests.sh line 221 ($HOST(TYPE|NAME)):
    grep "^\"$HOSTNAME\"$" dig.out.ns2.$n > /dev/null || ret=1
    possible bashism in builtin/tests.sh line 228 ($HOST(TYPE|NAME)):
    grep "^; NSID: .* (\"$HOSTNAME\")$" dig.out.ns2.$n > /dev/null || ret=1

We don't use the variable this way but rename it to HOST_NAME to silence
the tool.
bin/tests/system/builtin/tests.sh