mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 14:41:40 +00:00
fix _exists for busybox
This commit is contained in:
parent
e0cd2cdb9c
commit
82dc2244c0
7
acme.sh
7
acme.sh
@ -247,9 +247,12 @@ _exists() {
|
|||||||
_usage "Usage: _exists cmd"
|
_usage "Usage: _exists cmd"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
if command >/dev/null 2>&1; then
|
|
||||||
|
if eval type type >/dev/null 2>&1; then
|
||||||
|
eval type "$cmd" >/dev/null 2>&1
|
||||||
|
elif command >/dev/null 2>&1; then
|
||||||
command -v "$cmd" >/dev/null 2>&1
|
command -v "$cmd" >/dev/null 2>&1
|
||||||
elif which ls >/dev/null 2>&1; then
|
elif which which >/dev/null 2>&1; then
|
||||||
which "$cmd" >/dev/null 2>&1
|
which "$cmd" >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
ret="$?"
|
ret="$?"
|
||||||
|
Loading…
Reference in New Issue
Block a user