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
cdec38ba
Commit
cdec38ba
authored
Dec 07, 2016
by
seidler2547
Committed by
Stefan Seidel
Feb 23, 2017
Browse files
return error if any removal failed
parent
1cb6e9e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_do.sh
View file @
cdec38ba
...
@@ -30,14 +30,16 @@ dns_do_rm() {
...
@@ -30,14 +30,16 @@ dns_do_rm() {
_cookiejar
=
"
$(
_mktemp
)
"
_cookiejar
=
"
$(
_mktemp
)
"
if
_dns_do_authenticate
;
then
if
_dns_do_authenticate
;
then
if
_dns_do_list_rrs
;
then
if
_dns_do_list_rrs
;
then
_dns_do_had_error
=
0
for
_rrid
in
${
_rr_list
}
;
do
for
_rrid
in
${
_rr_list
}
;
do
_info
"Deleting resource record
$_rrid
for
$_domain
"
_info
"Deleting resource record
$_rrid
for
$_domain
"
_dns_do_soap deleteRR origin
"
${
_domain
}
"
rrid
"
${
_rrid
}
"
_dns_do_soap deleteRR origin
"
${
_domain
}
"
rrid
"
${
_rrid
}
"
if
!
_contains
"
${
response
}
"
'>success<'
;
then
if
!
_contains
"
${
response
}
"
'>success<'
;
then
_dns_do_had_error
=
1
_err
"Could not delete resource record for
${
_domain
}
, id
${
_rrid
}
"
_err
"Could not delete resource record for
${
_domain
}
, id
${
_rrid
}
"
fi
fi
done
done
return
0
return
_dns_do_had_error
fi
fi
fi
fi
return
1
return
1
...
...
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