diff --git a/gitlab/functions.sh b/gitlab/functions.sh
index 8c353b7e095cf571c913145e528a80bb8d06264f..644f8cf7a730939f2f065ad1cfa06f5db38aeaa8 100644
--- a/gitlab/functions.sh
+++ b/gitlab/functions.sh
@@ -335,7 +335,7 @@ if [ -z "${CONDA_FOLDER}" ]; then
 fi
 
 # check if a conda installation exists. Otherwise, install one:
-if [ ! -e ${CONDA_FOLDER} ]; then
+if [ ! -e ${CONDA_FOLDER}/bin/conda ]; then
   install_miniconda ${CONDA_FOLDER}
 fi