Make new_stack_envvars local

This commit is contained in:
Juan Carlos Mejías Rodríguez 2019-05-10 20:02:07 -07:00 committed by GitHub
parent 7c5e9e9b57
commit b0b59385f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
psu
View File

@ -391,6 +391,7 @@ deploy() {
local stack_envvars
stack_envvars="$(echo -n "$STACK" | jq ".Env" -jc)"
if [ -n "$ENVIRONMENT_VARIABLES_FILE" ]; then
local new_stack_envvars
new_stack_envvars=$(env_file_to_json)
stack_envvars="$(echo -n "${new_stack_envvars}${stack_envvars}" | jq -sjc 'add | unique_by(.name)')"
fi