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
2e602ef6
Commit
2e602ef6
authored
Jul 02, 2017
by
RaidenII
Browse files
Added ret value verification.
parent
9aed1e2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_namecom.sh
View file @
2e602ef6
...
...
@@ -32,7 +32,9 @@ dns_namecom_add() {
_saveaccountconf Namecom_Token
"
$Namecom_Token
"
# Login in using API
_namecom_login
if
!
_namecom_login
;
then
return
1
fi
# Find domain in domain list.
if
!
_namecom_get_root
"
$fulldomain
"
;
then
...
...
@@ -63,7 +65,9 @@ dns_namecom_rm() {
fulldomain
=
$1
txtvalue
=
$2
_namecom_login
if
!
_namecom_login
;
then
return
1
fi
# Find domain in domain list.
if
!
_namecom_get_root
"
$fulldomain
"
;
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