]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Make the cleanpkcs11.sh more universal across branches
authorOndřej Surý <ondrej@sury.org>
Fri, 1 May 2020 07:02:54 +0000 (09:02 +0200)
committerOndřej Surý <ondrej@sury.org>
Fri, 1 May 2020 07:02:54 +0000 (09:02 +0200)
bin/tests/system/cleanpkcs11.sh

index 7c44ce265bcae77a5bf1a30de6ce3580217e8d27..fafb08a54eab28f4df762d3da7b8ba787c5a4e10 100644 (file)
@@ -11,4 +11,6 @@
 
 . "$SYSTEMTESTTOP/conf.sh"
 
-[ -x "$TOP_BUILDDIR/bin/pkcs11/pkcs11-destroy" ] && $PK11DEL -w0 > /dev/null 2>&1
+PK11DELBIN=$(echo "$PK11DEL" | awk '{ print $1 }')
+
+[ -x "$PK11DELBIN" ] && $PK11DEL -w0 > /dev/null 2>&1