Commit 0ba95a3d authored by neil's avatar neil
Browse files

fix auto upgrade

parent 0463b5d6
#!/usr/bin/env sh #!/usr/bin/env sh
VER=2.5.6 VER=2.5.7
PROJECT_NAME="acme.sh" PROJECT_NAME="acme.sh"
...@@ -3189,7 +3189,6 @@ cron() { ...@@ -3189,7 +3189,6 @@ cron() {
if [ "$AUTO_UPGRADE" ] ; then if [ "$AUTO_UPGRADE" ] ; then
export LE_WORKING_DIR export LE_WORKING_DIR
( (
. $LE_WORKING_DIR/$PROJECT_ENTRY >/dev/null
if ! upgrade ; then if ! upgrade ; then
_err "Cron:Upgrade failed!" _err "Cron:Upgrade failed!"
return 1 return 1
...@@ -3206,7 +3205,7 @@ cron() { ...@@ -3206,7 +3205,7 @@ cron() {
renewAll renewAll
_ret="$?" _ret="$?"
IN_CRON="" IN_CRON=""
return $_ret exit $_ret
} }
version() { version() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment