Skip to content
Snippets Groups Projects
Commit 2d5ff793 authored by rdanecek's avatar rdanecek
Browse files

Exit install script if environment creation failed to avoid errouneously...

Exit install script if environment creation failed to avoid errouneously installing packages into the base env.
parent c167b94d
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,13 @@ echo "Creating conda environment" ...@@ -12,6 +12,13 @@ echo "Creating conda environment"
mamba create -n work38 python=3.8 mamba create -n work38 python=3.8
eval "$(conda shell.bash hook)" # make sure conda works in the shell script eval "$(conda shell.bash hook)" # make sure conda works in the shell script
conda activate work38 conda activate work38
if echo $CONDA_PREFIX | grep work38
then
echo "Conda environment successfully activated"
else
echo "Conda environment not activated. Probably it was not created successfully for some reason. Please activate the conda environment before running this script"
exit
fi
echo "Installing conda packages" echo "Installing conda packages"
mamba env update -n work38 --file conda-environment_py38_cu11_ubuntu.yml mamba env update -n work38 --file conda-environment_py38_cu11_ubuntu.yml
echo "Installing GDL" echo "Installing GDL"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment