Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

equal sign (=) character support #4

Closed
wiskarindra opened this issue Apr 9, 2019 · 1 comment
Closed

equal sign (=) character support #4

wiskarindra opened this issue Apr 9, 2019 · 1 comment

Comments

@wiskarindra
Copy link

I'm trying to add a cert to .env file like this:
CERT: "-----BEGIN CERTIFICATE-----\nMIIEkjCCA3qgAwIBAgIQCgFBQgAAAVOFc2oLh==........”

but it doesn't works if there is equal sign = character in the value

Any suggestion?

@subosito
Copy link
Owner

Using \n within quoted string makes it to be expanded as newline and = sign will be expanded to a new key-value env pair.

You can use ' (single quote) to prevent such behaviour.

CERT: '-----BEGIN CERTIFICATE-----\nMIIEkjCCA3qgAwIBAgIQCgFBQgAAAVOFc2oLh==........'

@subosito subosito closed this as completed Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants