Explorar o código

Declare and assign separately to avoid masking return values

seidler2547 %!s(int64=8) %!d(string=hai) anos
pai
achega
2b2b65fe18
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      dnsapi/dns_do.sh

+ 2 - 1
dnsapi/dns_do.sh

@@ -109,7 +109,8 @@ _dns_do_soap() {
   _debug2 "SOAP response $response"
 
   # retrieve cookie header
-  export _H2="$(_egrep_o 'Cookie: [^;]+' <"$HTTP_HEADER" | _head_n 1)"
+  _H2="$(_egrep_o 'Cookie: [^;]+' <"$HTTP_HEADER" | _head_n 1)"
+  export _H2
 
   return 0
 }