]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[v9_9] use 'command' instead of 'type' to find atf-run and kyua paths
authorEvan Hunt <each@isc.org>
Tue, 30 Jan 2018 18:33:46 +0000 (10:33 -0800)
committerEvan Hunt <each@isc.org>
Tue, 30 Jan 2018 18:33:46 +0000 (10:33 -0800)
unit/unittest.sh.in [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index de304c6..2ddbdb7
@@ -2,8 +2,8 @@
 
 PATH="@ATFBIN@:${PATH}"
 export PATH
-ATFRUN=`type atf-run 2>/dev/null | awk '{print $3}'`
-KYUA=`type kyua 2>/dev/null | awk '{print $3}'`
+ATFRUN=`command -v atf-run 2>/dev/null`
+KYUA=`command -v kyua 2>/dev/null`
 
 status=0
 if [ -n "@UNITTESTS@" -a -x "$ATFRUN" -a -f Atffile ]