#!/bin/bash
# do a shell install as the owning user
# can fix certain installed shell scripts when  mamba is upgraded
# args:
# $1 = base_path, the path to the base environment

set -e

base_path=$1

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

conda activate $base_path

mamba shell init --shell bash -y
