Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
eac18b1c
Commit
eac18b1c
authored
Apr 16, 2016
by
neil
Browse files
fix compatible for sh
parent
6f930641
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
eac18b1c
...
...
@@ -62,7 +62,11 @@ _exists() {
_err
"Usage: _exists cmd"
return
1
fi
command
-v
$cmd
>
/dev/null 2>&1
if
type command
>
/dev/null 2>&1
;
then
command
-v
$cmd
>
/dev/null 2>&1
else
type
$cmd
>
/dev/null 2>&1
fi
ret
=
"
$?
"
_debug2
"
$cmd
exists=
$ret
"
return
$ret
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment