fix format

This commit is contained in:
neil 2020-08-12 20:48:21 +08:00
parent 578c338d40
commit 365aa69afd

View File

@ -3534,12 +3534,12 @@ _regAccount() {
fi fi
_eab_id="$(echo "$_eabresp" | tr ',}' '\n' | grep '"eab_kid"' | cut -d : -f 2 | tr -d '"')" _eab_id="$(echo "$_eabresp" | tr ',}' '\n' | grep '"eab_kid"' | cut -d : -f 2 | tr -d '"')"
if [ -z "$_eab_id" ]; then if [ -z "$_eab_id" ]; then
_err "Can not resolve _eab_id"; _err "Can not resolve _eab_id"
return 1 return 1
fi fi
_eab_hmac_key="$(echo "$_eabresp" | tr ',}' '\n' | grep '"eab_hmac_key"' | cut -d : -f 2 | tr -d '"')" _eab_hmac_key="$(echo "$_eabresp" | tr ',}' '\n' | grep '"eab_hmac_key"' | cut -d : -f 2 | tr -d '"')"
if [ -z "$_eab_hmac_key" ]; then if [ -z "$_eab_hmac_key" ]; then
_err "Can not resolve _eab_hmac_key"; _err "Can not resolve _eab_hmac_key"
return 1 return 1
fi fi
_savecaconf CA_EAB_KEY_ID "$_eab_id" _savecaconf CA_EAB_KEY_ID "$_eab_id"