add quotes to set and use $environment_file

This commit is contained in:
mauwii 2022-11-08 22:27:19 +01:00
parent e97515d045
commit 10cfeb5ada
No known key found for this signature in database
GPG Key ID: D923DB04ADB3F5AB

View File

@ -97,12 +97,12 @@ source "$CONDA_BASEPATH/etc/profile.d/conda.sh" # otherwise conda complains abou
conda activate
if [ "$OS_NAME" == "mac" ]; then
environment_file=environment-mac.yml
environment_file="environment-mac.yml"
else
environment_file=environment.yml
environment_file="environment.yml"
fi
conda env update -f $environment_file
conda env update -f "${environment_file}"
status=$?