diff --git a/entrypoint.sh b/entrypoint.sh index 520a0f0..98f7d2f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,8 +14,8 @@ error() { # Try JSON file if [[ -f $SECRETS_JSON ]]; then - [[ -z $VTEX_APP_KEY ]] && VTEX_APP_KEY=$(jq .vtex.apiKey SECRETS_JSON) - [[ -z $VTEX_APP_TOKEN ]] && VTEX_APP_TOKEN=$(jq .vtex.apiToken SECRETS_JSON) + [[ -z $VTEX_APP_KEY ]] && VTEX_APP_KEY=$(jq -r .vtex.apiKey $SECRETS_JSON) + [[ -z $VTEX_APP_TOKEN ]] && VTEX_APP_TOKEN=$(jq -r .vtex.apiToken $SECRETS_JSON) fi # Test to see if we can login