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
20a6ab3d
Commit
20a6ab3d
authored
Nov 07, 2016
by
neilpang
Browse files
find hook file in current dir first
parent
21f16b50
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
20a6ab3d
...
@@ -2298,7 +2298,11 @@ _findHook() {
...
@@ -2298,7 +2298,11 @@ _findHook() {
_hookcat
=
"
$2
"
_hookcat
=
"
$2
"
_hookname
=
"
$3
"
_hookname
=
"
$3
"
if
[
-f
"
$LE_WORKING_DIR
/
$_hookdomain
/
$_hookname
"
]
;
then
if
[
-f
"
$_SCRIPT_HOME
/
$_hookdomain
/
$_hookname
"
]
;
then
d_api
=
"
$_SCRIPT_HOME
/
$_hookdomain
/
$_hookname
"
elif
[
-f
"
$_SCRIPT_HOME
/
$_hookdomain
/
$_hookname
.sh"
]
;
then
d_api
=
"
$_SCRIPT_HOME
/
$_hookdomain
/
$_hookname
.sh"
elif
[
-f
"
$LE_WORKING_DIR
/
$_hookdomain
/
$_hookname
"
]
;
then
d_api
=
"
$LE_WORKING_DIR
/
$_hookdomain
/
$_hookname
"
d_api
=
"
$LE_WORKING_DIR
/
$_hookdomain
/
$_hookname
"
elif
[
-f
"
$LE_WORKING_DIR
/
$_hookdomain
/
$_hookname
.sh"
]
;
then
elif
[
-f
"
$LE_WORKING_DIR
/
$_hookdomain
/
$_hookname
.sh"
]
;
then
d_api
=
"
$LE_WORKING_DIR
/
$_hookdomain
/
$_hookname
.sh"
d_api
=
"
$LE_WORKING_DIR
/
$_hookdomain
/
$_hookname
.sh"
...
...
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