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
558e706b
Commit
558e706b
authored
Sep 12, 2023
by
Julien Furgerot
Browse files
fix ci errors (shellcheck & shfmt)
parent
1a08be0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_gandi_livedns.sh
View file @
558e706b
...
@@ -20,7 +20,7 @@ dns_gandi_livedns_add() {
...
@@ -20,7 +20,7 @@ dns_gandi_livedns_add() {
fulldomain
=
$1
fulldomain
=
$1
txtvalue
=
$2
txtvalue
=
$2
if
[
-z
"
$GANDI_LIVEDNS_KEY
"
-a
-z
"
$GANDI_LIVEDNS_TOKEN
"
]
;
then
if
[
-z
"
$GANDI_LIVEDNS_KEY
"
]
&&
[
-z
"
$GANDI_LIVEDNS_TOKEN
"
]
;
then
_err
"No Token or API key (deprecated) specified for Gandi LiveDNS."
_err
"No Token or API key (deprecated) specified for Gandi LiveDNS."
_err
"Create your token or key and export it as GANDI_LIVEDNS_KEY or GANDI_LIVEDNS_TOKEN respectively"
_err
"Create your token or key and export it as GANDI_LIVEDNS_KEY or GANDI_LIVEDNS_TOKEN respectively"
return
1
return
1
...
@@ -35,9 +35,6 @@ dns_gandi_livedns_add() {
...
@@ -35,9 +35,6 @@ dns_gandi_livedns_add() {
_clearaccountconf GANDI_LIVEDNS_TOKEN
_clearaccountconf GANDI_LIVEDNS_TOKEN
fi
fi
_debug
"First detect the root zone"
_debug
"First detect the root zone"
if
!
_get_root
"
$fulldomain
"
;
then
if
!
_get_root
"
$fulldomain
"
;
then
_err
"invalid domain"
_err
"invalid domain"
...
...
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