mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-26 15:02:03 +00:00
fix compatible for sh
This commit is contained in:
parent
6f93064114
commit
eac18b1c99
4
acme.sh
4
acme.sh
@ -62,7 +62,11 @@ _exists() {
|
|||||||
_err "Usage: _exists cmd"
|
_err "Usage: _exists cmd"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
if type command >/dev/null 2>&1 ; then
|
||||||
command -v $cmd >/dev/null 2>&1
|
command -v $cmd >/dev/null 2>&1
|
||||||
|
else
|
||||||
|
type $cmd >/dev/null 2>&1
|
||||||
|
fi
|
||||||
ret="$?"
|
ret="$?"
|
||||||
_debug2 "$cmd exists=$ret"
|
_debug2 "$cmd exists=$ret"
|
||||||
return $ret
|
return $ret
|
||||||
|
Loading…
Reference in New Issue
Block a user