Explorar o código

fix wget error message

neil %!s(int64=8) %!d(string=hai) anos
pai
achega
58ef6d8385
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      acme.sh

+ 1 - 1
acme.sh

@@ -1486,7 +1486,7 @@ _inithttp() {
   fi
 
   #from wget 1.14: do not skip body on 404 error
-  if [ "$_ACME_WGET" ] && _contains "$($_ACME_WGET --help)" "--content-on-error"; then
+  if [ "$_ACME_WGET" ] && _contains "$($_ACME_WGET --help 2>&1)" "--content-on-error"; then
     _ACME_WGET="$_ACME_WGET --content-on-error "
   fi