Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
e5aeff50
Commit
e5aeff50
authored
Jul 12, 2022
by
Bjarke Bruun
Browse files
Removed spaces (shfmt)
parent
5f44c195
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_dnsservices.sh
View file @
e5aeff50
...
@@ -215,8 +215,6 @@ deleteRecord() {
...
@@ -215,8 +215,6 @@ deleteRecord() {
result
=
"
$(
_H1
=
"
$_H1
"
_H2
=
"
$_H2
"
_get
"
$DNSServices_API
/service/
$rootZoneServiceID
/dns/
$rootZoneDomainID
"
)
"
result
=
"
$(
_H1
=
"
$_H1
"
_H2
=
"
$_H2
"
_get
"
$DNSServices_API
/service/
$rootZoneServiceID
/dns/
$rootZoneDomainID
"
)
"
recordInfo
=
"
$(
echo
"
$result
"
|
sed
-e
's/:{/:{\n/g'
-e
's/},/\n},\n/g'
|
grep
"
${
txtvalue
}
"
)
"
recordInfo
=
"
$(
echo
"
$result
"
|
sed
-e
's/:{/:{\n/g'
-e
's/},/\n},\n/g'
|
grep
"
${
txtvalue
}
"
)
"
recordID
=
"
$(
echo
"
$recordInfo
"
|
sed
-e
's/:{/:{\n/g'
-e
's/},/\n},\n/g'
|
grep
"
${
txtvalue
}
"
|
sed
-E
's,.*(zones)(.*),\1\2,g'
|
sed
-E
's,^(.*"id":")([^"]*)"(.*)$,\2,g'
)
"
recordID
=
"
$(
echo
"
$recordInfo
"
|
sed
-e
's/:{/:{\n/g'
-e
's/},/\n},\n/g'
|
grep
"
${
txtvalue
}
"
|
sed
-E
's,.*(zones)(.*),\1\2,g'
|
sed
-E
's,^(.*"id":")([^"]*)"(.*)$,\2,g'
)
"
#recordDomainID="$(echo "$recordInfo" | sed -e 's/:{/:{\n/g' -e 's/},/\n},\n/g' | grep "${txtvalue}" | sed -E 's,.*(zones)(.*),\1\2,g' | sed -E 's,^(.*"domain_id":")([^"]*)"(.*)$,\2,g')"
#recordName="$(echo "$recordInfo" | sed -e 's/:{/:{\n/g' -e 's/},/\n},\n/g' | grep "${txtvalue}" | sed -E 's,.*(zones)(.*),\1\2,g' | sed -E 's,^(.*"name":")([^"]*)"(.*)$,\2,g')"
if
[
-z
"
$recordID
"
]
;
then
if
[
-z
"
$recordID
"
]
;
then
_info
"Record
$fulldomain
TXT
$txtvalue
not found or already deleted"
_info
"Record
$fulldomain
TXT
$txtvalue
not found or already deleted"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment