diff options
author | Dan McGee <dan@archlinux.org> | 2008-07-25 14:12:04 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-07-25 14:12:04 +0200 |
commit | 3bf9448943dc0bd9ae6deadb8a772130926b2058 (patch) | |
tree | 69f2e63e42c82adc231dccc355d9b980f104f65f | |
parent | cf25884e992e9c0dd6e4bf2f7cd4bb3252578bf6 (diff) | |
download | pacman-3bf9448943dc0bd9ae6deadb8a772130926b2058.tar.gz pacman-3bf9448943dc0bd9ae6deadb8a772130926b2058.tar.xz |
vercmptest: fix binary existence check
Signed-off-by: Dan McGee <dan@archlinux.org>
-rwxr-xr-x | pactest/vercmptest.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |