Unverified Commit 67de3c27 authored by Samruddhi Khandale's avatar Samruddhi Khandale Committed by GitHub

Anaconda: Fix bug - Pass proxy variables to new shell for successful anaconda...

Anaconda: Fix bug - Pass proxy variables to new shell for successful anaconda installation behind proxies (#808)

Anaconda: Fix bug - Pass proxy variables to new shell
parent a88a95e1
{
"id": "anaconda",
"version": "1.0.11",
"version": "1.0.12",
"name": "Anaconda",
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/anaconda",
"options": {
......
......@@ -97,7 +97,8 @@ if ! conda --version &> /dev/null ; then
CONDA_VERSION="2021.11"
fi
su --login -c "wget -q https://repo.anaconda.com/archive/Anaconda3-${CONDA_VERSION}-Linux-x86_64.sh -O /tmp/anaconda-install.sh \
su --login -c "export http_proxy=${http_proxy:-} && export https_proxy=${https_proxy:-} \
&& wget -q https://repo.anaconda.com/archive/Anaconda3-${CONDA_VERSION}-Linux-x86_64.sh -O /tmp/anaconda-install.sh \
&& /bin/bash /tmp/anaconda-install.sh -u -b -p ${CONDA_DIR}" ${USERNAME} 2>&1
if [ "${VERSION}" = "latest" ] || [ "${VERSION}" = "lts" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment