Skip to content

Commit

Permalink
Prevent parse error on nested JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
jtwillis92 committed Aug 2, 2021
1 parent 437339c commit 2d41b2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/copy-login-gov-keypair.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ SOURCE_APP_GUID=$(cf app "$SOURCE_APP" --guid)
SOURCE_APP_ENV=$(cf curl "/v2/apps/$SOURCE_APP_GUID/env")
ENVIRONMENT_JSON=$(printf '%s\n' "$SOURCE_APP_ENV" | jq -r '.environment_json')

JWT_KEY=$(echo "$ENVIRONMENT_JSON" | jq -r '.JWT_KEY')
JWT_CERT=$(echo "$ENVIRONMENT_JSON" | jq -r '.JWT_CERT')
JWT_KEY=$(printf '%s\n' "$ENVIRONMENT_JSON" | jq -r '.JWT_KEY')
JWT_CERT=$(printf '%s\n' "$ENVIRONMENT_JSON" | jq -r '.JWT_CERT')

echo "JWT_KEY: $JWT_KEY"
echo "JWT_CERT: $JWT_CERT"
Expand Down

0 comments on commit 2d41b2c

Please sign in to comment.