mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 06:31:42 +00:00
fixed shfmt related errors in dns_euserv.sh and modified README.md
This commit is contained in:
parent
616b0b6baa
commit
261cc448f7
@ -126,9 +126,9 @@ dns_euserv_rm() {
|
|||||||
_info "Do not need to delete record"
|
_info "Do not need to delete record"
|
||||||
else
|
else
|
||||||
# find XML block where txtvalue is in. The record_id is allways prior this line!
|
# find XML block where txtvalue is in. The record_id is allways prior this line!
|
||||||
_endLine=$(printf '%s' "$response" | grep -n '>dns_record_content<.*>'"$txtvalue"'<' | cut -d ':' -f 1 )
|
_endLine=$(printf '%s' "$response" | grep -n '>dns_record_content<.*>'"$txtvalue"'<' | cut -d ':' -f 1)
|
||||||
# record_id is the last <name> Tag with a number before the row _endLine, identified by </name><value><struct>
|
# record_id is the last <name> Tag with a number before the row _endLine, identified by </name><value><struct>
|
||||||
_record_id=$(printf '%s' "$response" | sed -n '1,'"$_endLine"'p' | grep '</name><value><struct>' | tail -n 1 | sed 's/.*<name>\([0-9]*\)<\/name>.*/\1/' )
|
_record_id=$(printf '%s' "$response" | sed -n '1,'"$_endLine"'p' | grep '</name><value><struct>' | tail -n 1 | sed 's/.*<name>\([0-9]*\)<\/name>.*/\1/')
|
||||||
_info "Deleting record"
|
_info "Deleting record"
|
||||||
_euserv_delete_record "$_record_id"
|
_euserv_delete_record "$_record_id"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user