From 267f283a31c7df68ae5852d0b04d8ef6bb36a1b3 Mon Sep 17 00:00:00 2001
From: neil <github@byneil.com>
Date: Sun, 18 Sep 2016 13:06:15 +0800
Subject: [PATCH] fix bug,  upgrade in current dir without installation.

---
 acme.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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