Browse Source

https://github.com/Neilpang/acme.sh/issues/263

neil 8 years ago
parent
commit
a8df88ab91
1 changed files with 2 additions and 2 deletions
  1. 2 2
      acme.sh

+ 2 - 2
acme.sh

@@ -733,7 +733,7 @@ _mktemp() {
 
 _inithttp() {
 
-  if [ -z "$HTTP_HEADER" ] ; then
+  if [ -z "$HTTP_HEADER" ] || ! touch "HTTP_HEADER" ; then
     HTTP_HEADER="$(_mktemp)"
     _debug2 HTTP_HEADER "$HTTP_HEADER"
   fi
@@ -2772,7 +2772,7 @@ _installOnline() {
   if [ ! "$BRANCH" ] ; then
     BRANCH="master"
   fi
-  _initpath
+
   target="$PROJECT/archive/$BRANCH.tar.gz"
   _info "Downloading $target"
   localname="$BRANCH.tar.gz"