fix CI warnings SC2039 v2

This commit is contained in:
Sergey Zorin 2020-01-07 01:05:50 +03:00
parent 8e2f11389d
commit be7688a4df

View File

@ -92,7 +92,8 @@ _nic_get_auth_elements() {
if [ -n "$NIC_Token" ]; then
_two_values="$(echo "${NIC_Token}" | _dbase64)"
_debug _two_values "$_two_values"
IFS=":" read -r NIC_ClientID NIC_ClientSecret < <(echo "$_two_values")
NIC_ClientID=$(echo "$_two_values" | cut -d':' -f1)
NIC_ClientSecret=$(echo "$_two_values" | cut -d':' -f2-)
_debug restored_NIC_ClientID "$NIC_ClientID"
_debug restored_NIC_ClientSecret "$NIC_ClientSecret"
fi