Browse Source

Declare and assign separately to avoid masking return values

seidler2547 8 năm trước cách đây
mục cha
commit
2b2b65fe18
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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
 }