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
ee0fadf2
Commit
ee0fadf2
authored
Feb 08, 2022
by
peter
Browse files
shfmt
parent
9fb89d7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_curanet.sh
View file @
ee0fadf2
...
...
@@ -84,7 +84,7 @@ dns_curanet_rm() {
recordid
=
$(
echo
"
$response
"
| _egrep_o
"{
\"
id
\"
:[0-9]+,
\"
name
\"
:
\"
$fulldomain
\"
"
| _egrep_o
"id
\"
:[0-9]+"
|
cut
-c
5-
)
_debug
"Deleting recordID
$recordid
"
response
=
"
$(
_post
""
"
$CURANET_REST_URL
/
${
_domain
}
/Records/
$recordid
"
""
"DELETE"
)
"
return
0
;
return
0
}
#################### Private functions below ##################################
...
...
@@ -127,4 +127,4 @@ _get_root() {
i
=
$(
_math
"
$i
"
+ 1
)
done
return
1
}
\ No newline at end of file
}
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