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
b75e90f8
Commit
b75e90f8
authored
Mar 07, 2022
by
Gabriel Thörnblad
Browse files
Double quote variables (shellcheck suggestions)
parent
e82f3439
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_loopia.sh
View file @
b75e90f8
...
...
@@ -133,7 +133,7 @@ _loopia_get_records() {
<value><string>%s</string></value>
</param>
</params>
</methodCall>'
$LOOPIA_User
$LOOPIA_Password
"
$domain
"
"
$sub_domain
"
)
</methodCall>'
"
$LOOPIA_User
"
"
$LOOPIA_Password
"
"
$domain
"
"
$sub_domain
"
)
response
=
"
$(
_post
"
$xml_content
"
"
$LOOPIA_Api
"
""
"POST"
)
"
if
!
_contains
"
$response
"
"<array>"
;
then
...
...
@@ -162,7 +162,7 @@ _get_root() {
<value><string>%s</string></value>
</param>
</params>
</methodCall>'
$LOOPIA_User
$LOOPIA_Password
)
</methodCall>'
"
$LOOPIA_User
"
"
$LOOPIA_Password
"
)
response
=
"
$(
_post
"
$xml_content
"
"
$LOOPIA_Api
"
""
"POST"
)
"
while
true
;
do
...
...
@@ -228,7 +228,7 @@ _loopia_add_record() {
</value>
</param>
</params>
</methodCall>'
$LOOPIA_User
$LOOPIA_Password
"
$domain
"
"
$sub_domain
"
"
$txtval
"
)
</methodCall>'
"
$LOOPIA_User
"
"
$LOOPIA_Password
"
"
$domain
"
"
$sub_domain
"
"
$txtval
"
)
response
=
"
$(
_post
"
$xml_content
"
"
$LOOPIA_Api
"
""
"POST"
)
"
...
...
@@ -257,7 +257,7 @@ _sub_domain_exists() {
<value><string>%s</string></value>
</param>
</params>
</methodCall>'
$LOOPIA_User
$LOOPIA_Password
"
$domain
"
)
</methodCall>'
"
$LOOPIA_User
"
"
$LOOPIA_Password
"
"
$domain
"
)
response
=
"
$(
_post
"
$xml_content
"
"
$LOOPIA_Api
"
""
"POST"
)
"
...
...
@@ -292,7 +292,7 @@ _loopia_add_sub_domain() {
<value><string>%s</string></value>
</param>
</params>
</methodCall>'
$LOOPIA_User
$LOOPIA_Password
"
$domain
"
"
$sub_domain
"
)
</methodCall>'
"
$LOOPIA_User
"
"
$LOOPIA_Password
"
"
$domain
"
"
$sub_domain
"
)
response
=
"
$(
_post
"
$xml_content
"
"
$LOOPIA_Api
"
""
"POST"
)
"
...
...
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