Skip to content

Commit

Permalink
WIP: debug install Miniforge
Browse files Browse the repository at this point in the history
  • Loading branch information
leehart committed Dec 13, 2024
1 parent ec39e4a commit db227ed
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions install-conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db227ed

Please sign in to comment.