Skip to content

Commit

Permalink
dnsapi: Beget.com fix rm record
Browse files Browse the repository at this point in the history
  • Loading branch information
ARNik committed Jan 16, 2025
1 parent 2fef0eb commit aa6feb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dnsapi/dns_beget.sh
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ _add_record() {
_rm_record() {
data=$1
record_data=$2
echo "$data" | sed "s/$record_data,//" | sed "s/,$record_data//" | sed "s/$record_data//"
echo "$data" | sed "s/$record_data//g" | sed "s/,\+/,/g" |
sed "s/{,/{/g" | sed "s/,}/}/g" |
sed "s/\[,/\[/g" | sed "s/,\]/\]/g"
}

_txt_to_dns_json() {
Expand Down

0 comments on commit aa6feb4

Please sign in to comment.