Skip to content

Commit 90c6a1b

Browse files
authored
Merge pull request #15 from vtex/json
fix: 🐛 drop quotes from json
2 parents 5dc289a + 9c58c07 commit 90c6a1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entrypoint.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ error() {
1414

1515
# Try JSON file
1616
if [[ -f $SECRETS_JSON ]]; then
17-
[[ -z $VTEX_APP_KEY ]] && VTEX_APP_KEY=$(jq .vtex.apiKey SECRETS_JSON)
18-
[[ -z $VTEX_APP_TOKEN ]] && VTEX_APP_TOKEN=$(jq .vtex.apiToken SECRETS_JSON)
17+
[[ -z $VTEX_APP_KEY ]] && VTEX_APP_KEY=$(jq -r .vtex.apiKey $SECRETS_JSON)
18+
[[ -z $VTEX_APP_TOKEN ]] && VTEX_APP_TOKEN=$(jq -r .vtex.apiToken $SECRETS_JSON)
1919
fi
2020

2121
# Test to see if we can login

0 commit comments

Comments
 (0)