fix _exists

This commit is contained in:
neilpang 2016-11-16 23:53:32 +08:00
parent ac26f84170
commit 7575094cf3

View File

@ -249,7 +249,7 @@ _exists() {
fi
if command >/dev/null 2>&1; then
command -v "$cmd" >/dev/null 2>&1
elif which >/dev/null 2>&1; then
elif which ls >/dev/null 2>&1; then
which "$cmd" >/dev/null 2>&1
fi
ret="$?"