mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-05 23:34:31 +00:00
SC2155: Declare and assign separately to avoid masking return values
This commit is contained in:
parent
7ad3e809a4
commit
1ea5fe6b6d
@ -54,12 +54,13 @@ vault_cli_deploy() {
|
||||
fi
|
||||
|
||||
if [ -n "$VAULT_ROLE_ID" ]; then
|
||||
export VAULT_TOKEN=$(vault write -field=token auth/approle/login \
|
||||
VAULT_TOKEN=$(vault write -field=token auth/approle/login \
|
||||
role_id="$VAULT_ROLE_ID" secret_id="$VAULT_ROLE_SECRET")
|
||||
if [ ! $? ]; then
|
||||
_err "cannot login to vault approle ${VAULT_ROLE_ID}!"
|
||||
return 1
|
||||
fi
|
||||
export VAULT_TOKEN
|
||||
fi
|
||||
|
||||
if [ -n "$FABIO" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user