From db227ede0baa305642be120f4c2619d37872cbd2 Mon Sep 17 00:00:00 2001 From: _ <4256466+leehart@users.noreply.github.com> Date: Fri, 13 Dec 2024 09:15:59 -0600 Subject: [PATCH] WIP: debug install Miniforge --- install-conda.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/install-conda.sh b/install-conda.sh index a89885b..28c6a15 100755 --- a/install-conda.sh +++ b/install-conda.sh @@ -28,29 +28,31 @@ if [ ! -f miniforge.installed ]; then echo "[mgenv] installing miniforge to $INSTALLDIR" # clean up any previous - rm -rf conda + rm -rf ${HOME}/conda if [ "$(uname)" == "Darwin" ]; then # Install for Mac OS X platform # download miniforge - curl --continue-at - --remote-name https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-x86_64.sh + curl -fsSLo Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-$(uname -m).sh" # install miniforge - bash Miniforge3-MacOSX-x86_64.sh -b -p conda + bash Miniforge3.sh -b -p "${HOME}/conda" elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then # Install for GNU/Linux platform # download miniforge - wget --no-clobber https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh + wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" # install miniforge - bash Miniforge3-Linux-x86_64.sh -b -p conda + bash Miniforge3.sh -b -p "${HOME}/conda" fi - # include conda on the PATH - export PATH="$INSTALLDIR/conda/bin:$PATH" - echo $PATH + # activate conda + source "${HOME}/conda/etc/profile.d/conda.sh" + + # For mamba support also run the following command + # source "${HOME}/conda/etc/profile.d/mamba.sh" # mark success touch miniforge.installed