]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use proper perl interpreter in xfer system test
authorTom Krizek <tkrizek@isc.org>
Mon, 4 Sep 2023 11:49:18 +0000 (13:49 +0200)
committerTom Krizek <tkrizek@isc.org>
Wed, 20 Sep 2023 08:32:10 +0000 (10:32 +0200)
(cherry picked from commit f0493890cc0fc18b807ec87eec06a298cafdbe06)

bin/tests/system/xfer/prereq.sh

index c7b78281e289664226fc082bb60087301ef9bd68..16d04a26bd9a2eb533181a9a04d66521b217085f 100644 (file)
@@ -16,9 +16,9 @@
 # macOS ships with Net::DNS 0.74 which does not work with
 # HMAC-SHA256, despite the workarounds in ans.pl
 
-if perl -MNet::DNS -e 'exit $Net::DNS::VERSION >= 1.0'
+if ${PERL} -MNet::DNS -e 'exit ($Net::DNS::VERSION >= 1.0)'
 then
-       version=$(perl -MNet::DNS -e 'print $Net::DNS::VERSION')
+       version=$(${PERL} -MNet::DNS -e 'print $Net::DNS::VERSION')
        echo_i "perl Net::DNS $version is too old - skipping xfer test"
        exit 1
 fi