mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-26 15:02:03 +00:00
improve deletion of records
This commit is contained in:
parent
ce629e8e70
commit
dde1bab1a8
@ -215,7 +215,7 @@ _get_record_id() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_record_id="$(echo "$response" | tr -d '\n\r' | sed "s/<item xsi:type=\"ns2:Map\">/\n/g" | grep -i "$_record_name" | grep -i ">TXT<" | sed "s/<item><key xsi:type=\"xsd:string\">record_id<\/key><value xsi:type=\"xsd:string\">/=>/g" | sed "s/<\/value><\/item>/\n/g" | grep "=>" | sed "s/=>//g")"
|
_record_id="$(echo "$response" | tr -d '\n\r' | sed "s/<item xsi:type=\"ns2:Map\">/\n/g" | grep -i "$_record_name" | grep -i ">TXT<" | sed "s/<item><key xsi:type=\"xsd:string\">record_id<\/key><value xsi:type=\"xsd:string\">/=>/g" | grep -i "$_txtvalue" | sed "s/<\/value><\/item>/\n/g" | grep "=>" | sed "s/=>//g")"
|
||||||
_debug "[KAS] -> Record Id: " "$_record_id"
|
_debug "[KAS] -> Record Id: " "$_record_id"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@ -278,4 +278,4 @@ _callAPI() {
|
|||||||
response="$(_post "$data" "$KAS_Api" "" "POST" "$contentType")"
|
response="$(_post "$data" "$KAS_Api" "" "POST" "$contentType")"
|
||||||
_debug2 "[KAS] -> Response" "$response"
|
_debug2 "[KAS] -> Response" "$response"
|
||||||
echo "$response"
|
echo "$response"
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user