Open bukowa opened 1 week ago
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" }
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.
Can it be done?