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
400c31d0
Commit
400c31d0
authored
Aug 19, 2019
by
Rolph Haspers
Browse files
Fixed another styling issue (trailing spaces)
parent
54b38086
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_leaseweb.sh
View file @
400c31d0
...
@@ -111,7 +111,7 @@ _lsw_api() {
...
@@ -111,7 +111,7 @@ _lsw_api() {
if
[
"
$cmd
"
=
"POST"
]
;
then
if
[
"
$cmd
"
=
"POST"
]
;
then
data
=
"{
\"
name
\"
:
\"
$fulldomain
.
\"
,
\"
type
\"
:
\"
TXT
\"
,
\"
content
\"
: [
\"
$txtvalue
\"
],
\"
ttl
\"
: 60}"
data
=
"{
\"
name
\"
:
\"
$fulldomain
.
\"
,
\"
type
\"
:
\"
TXT
\"
,
\"
content
\"
: [
\"
$txtvalue
\"
],
\"
ttl
\"
: 60}"
response
=
"
$(
_post
"
$data
"
"
$LSW_API
/
$domain
/resourceRecordSets"
"
$data
"
"POST"
)
"
response
=
"
$(
_post
"
$data
"
"
$LSW_API
/
$domain
/resourceRecordSets"
"
$data
"
"POST"
)
"
_code
=
"
$(
grep
"^HTTP"
"
$HTTP_HEADER
"
| _tail_n 1 |
cut
-d
" "
-f
2 |
tr
-d
"
\\
r
\\
n"
)
"
_code
=
"
$(
grep
"^HTTP"
"
$HTTP_HEADER
"
| _tail_n 1 |
cut
-d
" "
-f
2 |
tr
-d
"
\\
r
\\
n"
)
"
_debug
"http response code
$_code
"
_debug
"http response code
$_code
"
_debug response
"
$response
"
_debug response
"
$response
"
...
...
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