We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Can it be done?
[unix] export VAR=1 [windows] export VAR=2
The text was updated successfully, but these errors were encountered:
So you're seeking to export different values for a particular environment variable depending whether running on Windows or a Unix OS?
Does this do what you're looking for? -
export VAR := if os_family() == 'windows' { "2" } else { "1" }
Sorry, something went wrong.
So you're seeking to export different values for a particular environment variable depending whether running on Windows or a Unix OS? Does this do what you're looking for? - export VAR := if os_family() == 'windows' { "2" } else { "1" }
Yes, thank you. I was hoping for a (e.g. undocumented) more expressive expression like in my example.
I'm not opposed to allowing OS attributes on variables, so I'll leave this open.
Just
No branches or pull requests
Can it be done?
The text was updated successfully, but these errors were encountered: