vercmptest: fix binary existence check

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2008-07-25 07:12:04 -05:00
parent cf25884e99
commit 3bf9448943
1 changed files with 1 additions and 1 deletions

View File

@ -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