fix anaconda pathing

This commit is contained in:
Josh Spicer 2022-05-26 01:32:41 +00:00 committed by GitHub
parent 04f5d29fd0
commit eb6ed37deb
2 changed files with 11 additions and 4 deletions

View file

@ -4,11 +4,17 @@
"options": {
"version": {
"type": "string",
"proposals": ["latest"],
"proposals": [
"latest"
],
"default": "latest",
"description": "Select or enter an anaconda version."
}
},
"containerEnv": {
"CONDA_DIR": "/usr/local/conda",
"PATH": "${CONDA_DIR}/bin:${PATH}"
},
"install": {
"app": "",
"file": "install.sh"

View file

@ -10,9 +10,10 @@
# Syntax: ./anaconda-debian.sh [Conda version] [CONDA_DIR] [Non-root user] [Add rc files flag]
VERSION=${1:-"latest"}
export CONDA_DIR=${2:-"/usr/local/conda"}
USERNAME=${3:-"automatic"}
UPDATE_RC=${4:-"true"}
USERNAME=${2:-"automatic"}
UPDATE_RC=${3:-"true"}
CONDA_DIR=${CONDA_DIR:-"/usr/local/conda"}
set -eux
export DEBIAN_FRONTEND=noninteractive