Skip to content

Commit

Permalink
fix ci errors (shellcheck & shfmt)
Browse files Browse the repository at this point in the history
  • Loading branch information
zbbfufu committed Sep 12, 2023
1 parent 1a08be0 commit 558e706
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dnsapi/dns_gandi_livedns.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 558e706

Please sign in to comment.