Browse Source

fix shfmt

pull/3139/head
flywithu 5 years ago
committed by GitHub
parent
commit
fa5f2f2c34
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      dnsapi/dns_dnsever.sh

20
dnsapi/dns_dnsever.sh

@ -21,29 +21,26 @@ dns_dnsever_add() {
_debug fulldomain "$fulldomain" _debug fulldomain "$fulldomain"
_debug txtvalue "$txtvalue" _debug txtvalue "$txtvalue"
DNSEVER_ID="${DNSEVER_ID:-$(_readaccountconf_mutable DNSEVER_ID)}" DNSEVER_ID="${DNSEVER_ID:-$(_readaccountconf_mutable DNSEVER_ID)}"
DNSEVER_PW="${DNSEVER_PW:-$(_readaccountconf_mutable DNSEVER_PW)}" DNSEVER_PW="${DNSEVER_PW:-$(_readaccountconf_mutable DNSEVER_PW)}"
if [ "$DNSEVER_ID" ]; then if [ "$DNSEVER_ID" ]; then
_saveaccountconf_mutable DNSEVER_ID "$DNSEVER_ID"
_saveaccountconf_mutable DNSEVER_PW "$DNSEVER_PW"
_saveaccountconf_mutable DNSEVER_ID "$DNSEVER_ID"
_saveaccountconf_mutable DNSEVER_PW "$DNSEVER_PW"
else else
if [ -z "$DNSEVER_ID" ] || [ -z "$DNSEVER_PW" ]; then if [ -z "$DNSEVER_ID" ] || [ -z "$DNSEVER_PW" ]; then
DNSEVER_ID="" DNSEVER_ID=""
DNSEVER_PW="" DNSEVER_PW=""
_err "You didn't specify a DNSEVER ID and PW yet." _err "You didn't specify a DNSEVER ID and PW yet."
return 1 return 1
fi
fi
fi fi
dnsever_domain_txt "add" "$DNSEVER_ID" "$DNSEVER_PW" "$fulldomain" "$txtvalue" dnsever_domain_txt "add" "$DNSEVER_ID" "$DNSEVER_PW" "$fulldomain" "$txtvalue"
#save the api key and email to the account conf file. #save the api key and email to the account conf file.
return $? return $?
} }
@ -55,11 +52,10 @@ dns_dnsever_rm() {
_info "Using dnsever remove" _info "Using dnsever remove"
_debug fulldomain "$fulldomain" _debug fulldomain "$fulldomain"
_debug txtvalue "$txtvalue" _debug txtvalue "$txtvalue"
DNSEVER_ID="${DNSEVER_ID:-$(_readaccountconf_mutable DNSEVER_ID)}" DNSEVER_ID="${DNSEVER_ID:-$(_readaccountconf_mutable DNSEVER_ID)}"
DNSEVER_PW="${DNSEVER_PW:-$(_readaccountconf_mutable DNSEVER_PW)}" DNSEVER_PW="${DNSEVER_PW:-$(_readaccountconf_mutable DNSEVER_PW)}"
if [ -z "$DNSEVER_ID" ] || [ -z "$DNSEVER_PW" ]; then if [ -z "$DNSEVER_ID" ] || [ -z "$DNSEVER_PW" ]; then
DNSEVER_ID="" DNSEVER_ID=""
DNSEVER_PW="" DNSEVER_PW=""

Loading…
Cancel
Save