]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
fix ci errors (shellcheck & shfmt)
authorJulien Furgerot <julien.furgerot@gmail.com>
Tue, 12 Sep 2023 13:54:44 +0000 (15:54 +0200)
committerJulien Furgerot <julien.furgerot@gmail.com>
Tue, 12 Sep 2023 13:54:44 +0000 (15:54 +0200)
dnsapi/dns_gandi_livedns.sh

index f299779e15263b1960c1e2c202351f11eafa4b50..14939d7c5a9b4ac589cdb451ef16417189efd313 100644 (file)
@@ -20,7 +20,7 @@ dns_gandi_livedns_add() {
   fulldomain=$1
   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 "Create your token or key and export it as GANDI_LIVEDNS_KEY or GANDI_LIVEDNS_TOKEN respectively"
     return 1
@@ -35,9 +35,6 @@ dns_gandi_livedns_add() {
     _clearaccountconf GANDI_LIVEDNS_TOKEN
   fi
 
-
-
-
   _debug "First detect the root zone"
   if ! _get_root "$fulldomain"; then
     _err "invalid domain"