From 62456e255d8dd5240fd8c61359ef3b233a900b8b Mon Sep 17 00:00:00 2001 From: rdanecek <danekradek@gmail.com> Date: Mon, 13 Feb 2023 15:15:54 +0100 Subject: [PATCH] Make the install script more robust --- install_38.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install_38.sh b/install_38.sh index c38ea864..413d0496 100755 --- a/install_38.sh +++ b/install_38.sh @@ -1,18 +1,18 @@ #!/bin/bash -if ! command -v mamba &> /dev/null -then - echo "mamba could not be found. Please install mamba before running this script" - exit -fi - echo "Pulling submodules" bash pull_submodules.sh echo "Installing mamba" conda install mamba -n base -c conda-forge +if ! command -v mamba &> /dev/null +then + echo "mamba could not be found. The installation must have failed. Please install mamba before running this script." + exit +fi echo "Creating conda environment" mamba env create -n work38 python=3.8 eval "$(conda shell.bash hook)" # make sure conda works in the shell script conda activate work38 +echo "Installing conda packages" mamba env update -n work38 --file conda-environment_py38_cu11_ubuntu.yml echo "Installing GDL" pip install Cython==0.29 -- GitLab