From 70d815db3e20ad2ce7cd3dba06efd06640e14d96 Mon Sep 17 00:00:00 2001 From: tweemeterjop Date: Wed, 23 Nov 2022 14:28:24 +0100 Subject: [PATCH] fixed ShellCheck issues --- dnsapi/dns_transip.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dnsapi/dns_transip.sh b/dnsapi/dns_transip.sh index 41a2d3fc..ef479217 100644 --- a/dnsapi/dns_transip.sh +++ b/dnsapi/dns_transip.sh @@ -144,7 +144,7 @@ _transip_setup() { TRANSIP_Key_File="${TRANSIP_Key_File:-$(_readaccountconf_mutable TRANSIP_Key_File)}" TRANSIP_Key="${TRANSIP_Key:-$(_readaccountconf_mutable TRANSIP_Key)}" # 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_Key_File="" TRANSIP_Key="" @@ -193,7 +193,8 @@ _transip_setup() { if [ "$(printf "%s\n" "$TRANSIP_Key" | wc -l)" -eq 1 ]; then TRANSIP_Key=$(printf "%s" "$TRANSIP_Key" | _dbase64) else - _saveaccountconf_mutable TRANSIP_Key $(printf "%s" "$TRANSIP_Key" | _base64) + TRANSIP_Key=$(printf "%s" "$TRANSIP_Key" | _base64) + _saveaccountconf_mutable TRANSIP_Key "$TRANSIP_Key" fi if [ -z "$_token" ]; then