You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# # "return" needs to be used here instead of "exit".
44
-
# # This script is included in another script by using "source".
45
-
# # "exit" would end the main script, "return" just ends this sub script.
46
-
# return 0
47
-
# fi
40
+
PREPARE_CONDA_ENVIRONMENT=${PREPARE_CONDA_ENVIRONMENT:-"true"}# Wether to prepare then Conda environment if needed (default, "true") or use an already prepared Conda environment ("false")
41
+
42
+
if [ "${CONDA_DEFAULT_ENV}"="${CODEGRAPH_CONDA_ENVIRONMENT}" ] && [ "${PREPARE_CONDA_ENVIRONMENT}"="false" ];then
43
+
echo"activateCondaEnvironment: Skipping activation. Target conda environment ${CODEGRAPH_CONDA_ENVIRONMENT} is already activated."
44
+
# "return" needs to be used here instead of "exit".
45
+
# This script is included in another script by using "source".
46
+
# "exit" would end the main script, "return" just ends this sub script.
47
+
return 0
48
+
fi
48
49
49
50
# Include operation system function to for example detect Windows.
0 commit comments