Merge pull request #396 from Neilpang/dev

fix _exists
This commit is contained in:
neil authored and GitHub committed 2016-11-16 23:55:44 +08:00
commit e0cd2cdb9c
1 file changed
+1 -1
+1 -1
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="$?"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.