summaryrefslogtreecommitdiff
path: root/pactest/vercmptest.sh
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-07-25 07:12:04 -0500
committerDan McGee <dan@archlinux.org>2008-07-25 07:12:04 -0500
commit3bf9448943dc0bd9ae6deadb8a772130926b2058 (patch)
tree69f2e63e42c82adc231dccc355d9b980f104f65f /pactest/vercmptest.sh
parentcf25884e992e9c0dd6e4bf2f7cd4bb3252578bf6 (diff)
downloadpacman-3bf9448943dc0bd9ae6deadb8a772130926b2058.tar.xz
vercmptest: fix binary existence check
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/vercmptest.sh')
-rwxr-xr-xpactest/vercmptest.sh2
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