Browse Source

fixed ShellCheck issues

pull/4382/head
tweemeterjop 2 years ago
parent
commit
70d815db3e
  1. 5
      dnsapi/dns_transip.sh

5
dnsapi/dns_transip.sh

@ -144,7 +144,7 @@ _transip_setup() {
TRANSIP_Key_File="${TRANSIP_Key_File:-$(_readaccountconf_mutable TRANSIP_Key_File)}" TRANSIP_Key_File="${TRANSIP_Key_File:-$(_readaccountconf_mutable TRANSIP_Key_File)}"
TRANSIP_Key="${TRANSIP_Key:-$(_readaccountconf_mutable TRANSIP_Key)}" TRANSIP_Key="${TRANSIP_Key:-$(_readaccountconf_mutable TRANSIP_Key)}"
# check their vals for null # check their vals for null
if [ -z "$TRANSIP_Username" ] || ( [ -z "$TRANSIP_Key_File" ] && [ -z "$TRANSIP_Key" ] ); then
if [ -z "$TRANSIP_Username" ] || { [ -z "$TRANSIP_Key_File" ] && [ -z "$TRANSIP_Key" ] ; }; then
TRANSIP_Username="" TRANSIP_Username=""
TRANSIP_Key_File="" TRANSIP_Key_File=""
TRANSIP_Key="" TRANSIP_Key=""
@ -193,7 +193,8 @@ _transip_setup() {
if [ "$(printf "%s\n" "$TRANSIP_Key" | wc -l)" -eq 1 ]; then if [ "$(printf "%s\n" "$TRANSIP_Key" | wc -l)" -eq 1 ]; then
TRANSIP_Key=$(printf "%s" "$TRANSIP_Key" | _dbase64) TRANSIP_Key=$(printf "%s" "$TRANSIP_Key" | _dbase64)
else else
_saveaccountconf_mutable TRANSIP_Key $(printf "%s" "$TRANSIP_Key" | _base64)
TRANSIP_Key=$(printf "%s" "$TRANSIP_Key" | _base64)
_saveaccountconf_mutable TRANSIP_Key "$TRANSIP_Key"
fi fi
if [ -z "$_token" ]; then if [ -z "$_token" ]; then

Loading…
Cancel
Save