#!/bin/bash
# update any number of packages in the base conda environment
# args:
# $1 = base_path, the path to the base environment
# rest of args: package specifications for a conda install line
# e.g. conda>=25,<26
set -e

base_path=$1
shift

conda_bin="${base_path}/condabin/conda"
eval "$(${conda_bin} shell.bash hook)"

conda activate $base_path

mamba install $@ -y
