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

Does not work with bash scripts? #7

Open
patmuk opened this issue May 15, 2017 · 1 comment
Open

Does not work with bash scripts? #7

patmuk opened this issue May 15, 2017 · 1 comment

Comments

@patmuk
Copy link

patmuk commented May 15, 2017

The only difference from the example I see is not using nom run (and setting the env value) in:
"test" : "NODE_ENV='production' && if-env NODE_ENV==production && echo 'prod' $NODE_ENV || echo 'dev' $NODE_ENV",

The output I get (in Mac OS Sierra):
dev production

Do I use it wrongly or did I met a limitation?

@anitharajagopal
Copy link

anitharajagopal commented Dec 18, 2018

I am facing the same issue, if condition is never satisfied, not sure why. @patmuk looks like this issue was reported more than a year now. Did it get resolved for you? if this doesnt work, I have to think of other option other than if-env

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