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
7d1c5fca
Commit
7d1c5fca
authored
Dec 07, 2016
by
neilpang
Browse files
fix for solaris
parent
39d1eeda
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_dp.sh
View file @
7d1c5fca
...
...
@@ -102,7 +102,7 @@ existing_records() {
fi
if
_contains
"
$response
"
"Action completed successful"
;
then
count
=
$(
printf
"%s"
"
$response
"
|
grep
'<type>TXT</type>'
|
wc
-l
)
count
=
$(
printf
"%s"
"
$response
"
|
grep
'<type>TXT</type>'
|
wc
-l
|
tr
-d
' '
)
record_id
=
$(
printf
"%s"
"
$response
"
|
grep
'^<id>'
|
tail
-1
|
cut
-d
'>'
-f
2 |
cut
-d
'<'
-f
1
)
return
0
else
...
...
@@ -208,9 +208,9 @@ _rest() {
if
[
"
$data
"
]
;
then
_debug2 data
"
$data
"
response
=
"
$(
_post
"
$data
"
"
$url
"
)
"
response
=
"
$(
_post
"
$data
"
"
$url
"
|
tr
-d
'\r'
)
"
else
response
=
"
$(
_get
"
$url
"
)
"
response
=
"
$(
_get
"
$url
"
|
tr
-d
'\r'
)
"
fi
if
[
"
$?
"
!=
"0"
]
;
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