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
c60613fb
Commit
c60613fb
authored
Nov 17, 2020
by
jakelamotta
Browse files
Fix indentation and added some debug messages
parent
bcc1b7b4
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_simply.sh
View file @
c60613fb
...
@@ -61,7 +61,7 @@ dns_simply_rm() {
...
@@ -61,7 +61,7 @@ dns_simply_rm() {
_debug _domain
"
$_domain
"
_debug _domain
"
$_domain
"
_debug txtvalue
"
$txtvalue
"
_debug txtvalue
"
$txtvalue
"
_
debug
"Getting existing records"
_
info
"Getting
all
existing records"
if
!
_simply_get_all_records
"
$_domain
"
;
then
if
!
_simply_get_all_records
"
$_domain
"
;
then
_err
"invalid domain"
_err
"invalid domain"
...
@@ -72,9 +72,12 @@ dns_simply_rm() {
...
@@ -72,9 +72,12 @@ dns_simply_rm() {
record_array
=(
`
echo
$records
|tr
-d
' '
|
tr
';'
' '
`
)
record_array
=(
`
echo
$records
|tr
-d
' '
|
tr
';'
' '
`
)
nr_of_deleted_records
=
0
nr_of_deleted_records
=
0
_info
"Fetching txt record.."
for
((
i
=
0
;
i<
=
${#
record_array
[@]
}
;
i++
))
;
do
for
((
i
=
0
;
i<
=
${#
record_array
[@]
}
;
i++
))
;
do
record
=
"
${
record_array
[
$i
]
}
"
record
=
"
${
record_array
[
$i
]
}
"
_debug record
"
$record
"
if
[[
"
$record
"
==
*
"
$txtvalue
"
*
&&
"
$record
"
==
*
"TXT"
*
]]
;
then
if
[[
"
$record
"
==
*
"
$txtvalue
"
*
&&
"
$record
"
==
*
"TXT"
*
]]
;
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