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
200cd597
Commit
200cd597
authored
Mar 28, 2020
by
Ehsan Aliakbar
Browse files
fix shellcheck errors in Arvan Dns Api
parent
4fa59ea0
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_arvan.sh
View file @
200cd597
...
...
@@ -78,7 +78,7 @@ dns_arvan_rm() {
if
!
printf
"%s"
"
$response
"
|
grep
\"
current_page
\"
:1
>
/dev/null
;
then
_err
"Error on Arvan Api"
-
err
"Please create a github issue with debbug log"
_
err
"Please create a github issue with debbug log"
return
1
fi
...
...
@@ -149,11 +149,11 @@ _arvan_rest() {
export
_H1
=
"Authorization:
$token_trimmed
"
if
[
"
$mtd
"
=
=
"DELETE"
]
;
then
if
[
"
$mtd
"
=
"DELETE"
]
;
then
# DELETE Request shouldn't have Content-Type
_debug data
"
$data
"
response
=
"
$(
_post
"
$data
"
"
$ARVAN_API_URL
/
$ep
"
""
"
$mtd
"
)
"
elif
[
"
$mtd
"
=
=
"POST"
]
;
then
elif
[
"
$mtd
"
=
"POST"
]
;
then
export
_H2
=
"Content-Type: application/json"
_debug data
"
$data
"
response
=
"
$(
_post
"
$data
"
"
$ARVAN_API_URL
/
$ep
"
""
"
$mtd
"
)
"
...
...
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