Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/utils, sh: Pass the USER environment variable to the container
The USER environment variable is set in different ways on different operating system distributions. It's usually set when logging into a new user session, but thereafter it may or may not get propagated into new instances of a shell depending on how it's getting set. eg., Fedora sets USER in /etc/profile, but Ubuntu doesn't. This means that shells running on a Fedora host and a Fedora toolbox container will automatically have the USER environment variable set. However, it's only available on Ubuntu hosts, but not on Ubuntu toolbox containers. Passing the USER environment variable to the container, if it's set on the host, will avoid such inconsistencies in the environment. #609
- Loading branch information