From 7f6603d9e9cc673c276e3f19aba640a6fab746a8 Mon Sep 17 00:00:00 2001 From: Vlad Roskov Date: Thu, 3 May 2018 03:05:27 +0300 Subject: [PATCH] make shellcheck happy --- dnsapi/dns_yandex_multitoken.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dnsapi/dns_yandex_multitoken.sh b/dnsapi/dns_yandex_multitoken.sh index 4a218c58..e5369c93 100644 --- a/dnsapi/dns_yandex_multitoken.sh +++ b/dnsapi/dns_yandex_multitoken.sh @@ -97,9 +97,9 @@ _PDD_get_domain() { _PDD_credentials() { fulldomain="${1}" - domainhash="$(echo -n "$fulldomain" | openssl md5 | cut -d ' ' -f2)" + domainhash="$(printf "%s" "$fulldomain" | openssl md5 | cut -d ' ' -f2)" if [ -z "${PDD_Multi_Token}" ]; then - eval PDD_Multi_Token=\$PDD_Multi_Token_$domainhash + eval "PDD_Multi_Token=\$PDD_Multi_Token_$domainhash" if [ -z "${PDD_Multi_Token}" ]; then PDD_Multi_Token="" _err "You need to export PDD_Multi_Token=xxxxxxxxxxxxxxxxx" @@ -107,7 +107,7 @@ _PDD_credentials() { return 1 fi else - _saveaccountconf PDD_Multi_Token_$domainhash "${PDD_Multi_Token}" + _saveaccountconf "PDD_Multi_Token_$domainhash" "${PDD_Multi_Token}" fi }