From: Evan Hunt Date: Tue, 30 Jan 2018 18:33:08 +0000 (-0800) Subject: [master] use 'command' instead of 'type' to find atf-run and kyua paths X-Git-Tag: v9.13.0~204 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=bc89b287c91a9c8c3fd265c442bd3b5d5943cac2;p=thirdparty%2Fbind9.git [master] use 'command' instead of 'type' to find atf-run and kyua paths --- diff --git a/unit/unittest.sh.in b/unit/unittest.sh.in old mode 100644 new mode 100755 index de304c641d9..2ddbdb77039 --- a/unit/unittest.sh.in +++ b/unit/unittest.sh.in @@ -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 ]