forked from KoslickiLab/YACHT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
18 lines (16 loc) · 742 Bytes
/
Copy pathsetup.sh
File metadata and controls
18 lines (16 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/bash
# Setup environment for running YACHT
# Check if the YACHT environment exists
ENV_NAME="yacht_env"
check=$(conda env list | cut -d" " -f 1 | grep -w $ENV_NAME | wc -l)
if [ $check -eq 1 ]; then
echo "The environment '$ENV_NAME' already exists. Please activate it by running 'conda activate $ENV_NAME'."
else
conda env create -f env/yacht_env.yml
check=$(conda env list | cut -d" " -f 1 | grep -w $ENV_NAME | wc -l)
if [ $check -eq 1 ]; then
echo "The environment '$ENV_NAME' has been successfully created and please activate it by running 'conda activate $ENV_NAME'."
else
echo "There was a problem creating the environment '$ENV_NAME'. Please check the error messages above."
fi
fi