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

On macos x setup_env.sh fails because of different sed behavior #2

Open
dbykadorov opened this issue Jul 25, 2020 · 0 comments
Open

Comments

@dbykadorov
Copy link

On macosx (zsh) setup_envs.sh fails with error

sed: 1: ".env.local": invalid command code .

In this SO https://stackoverflow.com/questions/19456518/invalid-command-code-despite-escaping-periods-using-sed recommended to add '' -e after sed -i in case when sed commandd fails on period (like .env.local I suppose).

I fixed this in this way (for all sed's) and this working wor me:

sed -i '' -e "s/^APP_ENV=.*/APP_ENV=${APP_ENV}/g" .env.local && \
...

Can you test it on linux and apply patch if it also works fine?

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

1 participant