Default values for environment variables #839
-
Is there a way to set an environment variable, only if it is not already set? i.e. I would like to have a value which defaults to |
Beta Was this translation helpful? Give feedback.
Answered by
sagiegurari
Apr 22, 2023
Replies: 1 comment
-
@jayvdb ya you can do something like the below: PREFER_EXISTING = { value = "new", condition = { env_not_set = ["PREFER_EXISTING"] } } see more at: https://github.com/sagiegurari/cargo-make#conditional |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jayvdb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@jayvdb ya you can do something like the below:
see more at:
https://github.com/sagiegurari/cargo-make#conditional
https://github.com/sagiegurari/cargo-make#global-configuration