Browse Source

find hook file in current dir first

pull/373/head
neilpang 8 years ago
parent
commit
20a6ab3d1a
  1. 6
      acme.sh

6
acme.sh

@ -2298,7 +2298,11 @@ _findHook() {
_hookcat="$2"
_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"
elif [ -f "$LE_WORKING_DIR/$_hookdomain/$_hookname.sh" ] ; then
d_api="$LE_WORKING_DIR/$_hookdomain/$_hookname.sh"

Loading…
Cancel
Save