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
f3c937f9
Commit
f3c937f9
authored
Jan 09, 2017
by
neil
Committed by
GitHub
Jan 09, 2017
Browse files
Merge pull request #524 from Neilpang/dev
minor, fix shellcheck warning
parents
cc4fa1c6
671a6994
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_dp.sh
View file @
f3c937f9
...
...
@@ -199,7 +199,7 @@ _get_root() {
#Usage: method URI data
_rest
()
{
m
=
$1
m
=
"
$1
"
ep
=
"
$2
"
data
=
"
$3
"
_debug
"
$ep
"
...
...
@@ -207,11 +207,11 @@ _rest() {
_debug url
"
$url
"
if
[
"
$data
"
]
;
then
if
[
"
$m
"
=
"GET"
]
;
then
response
=
"
$(
_get
"
$url
"
|
tr
-d
'\r'
)
"
else
_debug2 data
"
$data
"
response
=
"
$(
_post
"
$data
"
"
$url
"
|
tr
-d
'\r'
)
"
else
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