From 3bf9448943dc0bd9ae6deadb8a772130926b2058 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 25 Jul 2008 07:12:04 -0500 Subject: vercmptest: fix binary existence check Signed-off-by: Dan McGee --- pactest/vercmptest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pactest/vercmptest.sh b/pactest/vercmptest.sh index e36bf4be..fca06578 100755 --- a/pactest/vercmptest.sh +++ b/pactest/vercmptest.sh @@ -62,7 +62,7 @@ runtest() { # use first arg as our binary if specified [ -n "$1" ] && bin="$1" -if [ ! -x "$bin" ]; then +if [ ! $(type -p "$bin") ]; then echo "vercmp binary ($bin) could not be located" exit 1 fi -- cgit v1.2.3-70-g09d2