Commit ce4be4e9 authored by neil's avatar neil
Browse files

fix _exists

parent 82dc2244
...@@ -252,7 +252,7 @@ _exists() { ...@@ -252,7 +252,7 @@ _exists() {
eval type "$cmd" >/dev/null 2>&1 eval type "$cmd" >/dev/null 2>&1
elif command >/dev/null 2>&1; then elif command >/dev/null 2>&1; then
command -v "$cmd" >/dev/null 2>&1 command -v "$cmd" >/dev/null 2>&1
elif which which >/dev/null 2>&1; then else
which "$cmd" >/dev/null 2>&1 which "$cmd" >/dev/null 2>&1
fi fi
ret="$?" ret="$?"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment