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
4f816c06
Commit
4f816c06
authored
Jun 07, 2022
by
Guilherme Capilé
Browse files
variable expansion consistency & actions push
parent
b5f49d95
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_ultra.sh
View file @
4f816c06
...
@@ -146,14 +146,14 @@ _ultra_rest() {
...
@@ -146,14 +146,14 @@ _ultra_rest() {
if
[
-z
"
$AUTH_TOKEN
"
]
;
then
if
[
-z
"
$AUTH_TOKEN
"
]
;
then
_ultra_login
_ultra_login
fi
fi
_debug TOKEN
"
$
{
AUTH_TOKEN
}
"
_debug TOKEN
"
$AUTH_TOKEN
"
export
_H1
=
"Content-Type: application/json"
export
_H1
=
"Content-Type: application/json"
export
_H2
=
"Authorization: Bearer
$
{
AUTH_TOKEN
}
"
export
_H2
=
"Authorization: Bearer
$AUTH_TOKEN
"
if
[
"
$m
"
!=
"GET"
]
;
then
if
[
"
$m
"
!=
"GET"
]
;
then
_debug data
"
$
{
data
}
"
_debug data
"
$data
"
response
=
"
$(
_post
"
$
{
data
}
"
"
$
{
ULTRA_API
}${
ep
}
"
""
"
$
{
m
}
"
)
"
response
=
"
$(
_post
"
$data
"
"
$ULTRA_API
$
ep
"
""
"
$
m
"
)
"
else
else
response
=
"
$(
_get
"
$ULTRA_API$ep
"
)
"
response
=
"
$(
_get
"
$ULTRA_API$ep
"
)
"
fi
fi
...
...
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