mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
vercmptest: fix binary existence check
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
cf25884e99
commit
3bf9448943
@ -62,7 +62,7 @@ runtest() {
|
|||||||
# use first arg as our binary if specified
|
# use first arg as our binary if specified
|
||||||
[ -n "$1" ] && bin="$1"
|
[ -n "$1" ] && bin="$1"
|
||||||
|
|
||||||
if [ ! -x "$bin" ]; then
|
if [ ! $(type -p "$bin") ]; then
|
||||||
echo "vercmp binary ($bin) could not be located"
|
echo "vercmp binary ($bin) could not be located"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user