Skip to content

Commit

Permalink
[fix] installer
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon J. Köhn committed Jan 27, 2025
1 parent 3ce1b01 commit 5498192
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions utils/quick_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,34 +139,34 @@ fi

##################
# #
# Mambaforge #
# Miniforge #
# #
##################

MINICONDA=
MINICONDAPATH="${PREFIX}/mambaforge"
MINICONDAPATH="${PREFIX}/miniforge"

title 'installing Mambaforge'
title 'installing Miniforge3'

# Check if directory is free
check_directory "${MINICONDAPATH}" 'Mambaforge installation path'

# Check OS for OS-Spefic Mambaforge installer
MINICONDA="Miniforge3-24.11.3-0-$(uname)-$(uname -m).sh"
MINICONDA="Miniforge3-$(uname)-$(uname -m).sh"
message 'Using installer:' "${MINICONDA}"

# Get and install Mambaforge
# shellcheck disable=SC2015
mkdir -p "${PREFIX}" && cd "${PREFIX}" || fail "Could not create directory: ${PREFIX}"
[[ -f "${MINICONDA}" ]] && rm "${MINICONDA}"
${DOWNLOAD} "https://github.com/conda-forge/miniforge/releases/latest/download/${MINICONDA}"
sh "${MINICONDA}" -b -p mambaforge
sh "${MINICONDA}" -b -p miniforge
# -b for batch (no question asked)
MINICONDAFULLPATH="$(pwd)/mambaforge"
MINICONDAFULLPATH="$(pwd)/miniforge"


# shellcheck source=/dev/null
. mambaforge/bin/activate
. miniforge/bin/activate

# set the channel precedence (lowest to highest)
conda config --add channels defaults
Expand Down

0 comments on commit 5498192

Please sign in to comment.