Closed RemiKalbe closed 2 years ago
If I run it like so
sudo doppler run -- node test.js
It works, but I'll keep this issue open in case it should also works as I described.
This is a feature of the sudo
command. You must pass the --preserve-env
flag (or -E
) to retain these variables in your new shell.
Describe the bug If I run a program as sudo, the env variables that should be populated by doppler, aren't.
To Reproduce A simple javascript file
If I run
I get back
But if I run as root
I get
Expected behavior To have my ENV var populated, whether or not I use sudo.
Desktop (please complete the following information):
CLI Version: Version 3.36.0