diff options
author | Samruddhi Khandale <skhandale@microsoft.com> | 2022-11-24 01:21:26 +0300 |
---|---|---|
committer | Samruddhi Khandale <skhandale@microsoft.com> | 2022-11-24 01:21:26 +0300 |
commit | c8383b60e06c5f46bbd8254781842d4e077034fe (patch) | |
tree | 3cea04c37f608dd254597ef81dcef67c410cb821 /src/python | |
parent | 188f1ef26bc8fa942d552dfaa8596091a8a39126 (diff) |
Features: Set USERNAME to _REMOTE_USER if available
Diffstat (limited to 'src/python')
-rw-r--r-- | src/python/devcontainer-feature.json | 2 | ||||
-rwxr-xr-x | src/python/install.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/python/devcontainer-feature.json b/src/python/devcontainer-feature.json index b96511b..ca474ab 100644 --- a/src/python/devcontainer-feature.json +++ b/src/python/devcontainer-feature.json @@ -1,6 +1,6 @@ { "id": "python", - "version": "1.0.15", + "version": "1.0.16", "name": "Python", "documentationURL": "https://github.com/devcontainers/features/tree/main/src/python", "description": "Installs the provided version of Python, as well as PIPX, and other common Python utilities. JupyterLab is conditionally installed with the python feature. Note: May require source code compilation.", diff --git a/src/python/install.sh b/src/python/install.sh index d823cc9..2c4792a 100755 --- a/src/python/install.sh +++ b/src/python/install.sh @@ -15,7 +15,7 @@ OVERRIDE_DEFAULT_VERSION=${OVERRIDEDEFAULTVERSION:-"true"} export PIPX_HOME=${PIPX_HOME:-"/usr/local/py-utils"} -USERNAME=${USERNAME:-"automatic"} +USERNAME="${USERNAME:-"${_REMOTE_USER:-"automatic"}"}" UPDATE_RC=${UPDATE_RC:-"true"} USE_ORYX_IF_AVAILABLE=${USEORYXIFAVAILABLE:-"true"} |