Browse Source

fix bug, upgrade in current dir without installation.

neil 8 years ago
parent
commit
267f283a31
1 changed files with 3 additions and 1 deletions
  1. 3 1
      acme.sh

+ 3 - 1
acme.sh

@@ -1,6 +1,6 @@
 #!/usr/bin/env sh
 #!/usr/bin/env sh
 
 
-VER=2.5.1
+VER=2.5.2
 
 
 PROJECT_NAME="acme.sh"
 PROJECT_NAME="acme.sh"
 
 
@@ -3125,6 +3125,8 @@ _installOnline() {
 
 
 upgrade() {
 upgrade() {
   if (
   if (
+    _initpath
+    export LE_WORKING_DIR
     cd "$LE_WORKING_DIR"
     cd "$LE_WORKING_DIR"
     _installOnline "nocron"
     _installOnline "nocron"
   ) ; then
   ) ; then