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
18e46962
Commit
18e46962
authored
Sep 22, 2016
by
neil
Browse files
fix
https://github.com/Neilpang/acme.sh/issues/297
parent
319e0ae3
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
18e46962
...
...
@@ -1244,12 +1244,20 @@ _starttlsserver() {
_debug serverproc $serverproc
}
#file
_readlink() {
_rf="$1"
if ! readlink -f "$_rf" 2>/dev/null; then
readlink "$_rf"
fi
}
__initHome() {
if [ -z "$_SCRIPT_HOME" ] ; then
if _exists readlink && _exists dirname ; then
_debug "Lets guess script dir."
_debug "_SCRIPT_" "$_SCRIPT_"
_script="$(readlink
-f
"$_SCRIPT_")"
_script="$(
_
readlink "$_SCRIPT_")"
_debug "_script" "$_script"
_script_home="$(dirname "$_script")"
_debug "_script_home" "$_script_home"
...
...
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