]> 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>
Tue, 19 Sep 2023 12:47:47 +0000 (14:47 +0200)
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