Skip to content

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

@dbykadorov

Description

@dbykadorov

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions