2 ms·
This will break badly if you have whitespace in your environment variable names or values: export $(envconsul -once -config="/envconsul-config.hcl" env | x
by koolba 10y ago
This will break badly if you have whitespace in your environment variable names or values:
export $(envconsul -once -config="/envconsul-config.hcl" env | xargs)
What they really should do is add an "--as-exports" option that outputs lines of properly escaped "export FOO=<value>" lines. That output could then be processed in a script via:
envconsul --as-exports | source /dev/stdin