Load environment variables from .env file in Bash
I’m trying to load environment variables from a file.env in Bash
Difficulties arise if the file contains complex variables.
Exemple file.env (variable NODE)
How do you package arguments in an environment variable in bash?
I have an example bash script, example.sh
that looks like this:
How to expand variables with spaces in bash
I’d like to call kubectl run
that allows to specify environment values with the syntax: --env=nameOfVar=valueOfVar
.