Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
bcc96793
Commit
bcc96793
authored
Jul 12, 2022
by
Bjarke Bruun
Browse files
Removed spaces (shfmt) (missed one)
parent
e5aeff50
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_dnsservices.sh
View file @
bcc96793
...
@@ -213,7 +213,7 @@ deleteRecord() {
...
@@ -213,7 +213,7 @@ deleteRecord() {
fi
fi
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'
)
"
if
[
-z
"
$recordID
"
]
;
then
if
[
-z
"
$recordID
"
]
;
then
...
...
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