diff --git a/setup_eth_euler/update_conda_env_on_euler.sh b/setup_eth_euler/update_conda_env_on_euler.sh
index 3893c8d40f4c57a4d83040c587dd96cde392d7e1..38c1b1e57cb20d83a5acbaecd0bd69143fd7b553 100755
--- a/setup_eth_euler/update_conda_env_on_euler.sh
+++ b/setup_eth_euler/update_conda_env_on_euler.sh
@@ -10,7 +10,7 @@ ssh euler bash <<EOL
 set -x
 cd ${ROOT}
 test -f $MINICONDA_INSTALLER || wget https://repo.anaconda.com/miniconda/$MINICONDA_INSTALLER
-test -f miniconda3  || bash Miniconda3-latest-Linux-x86_64.sh -b -p ./miniconda3
+test -d miniconda3  || bash Miniconda3-latest-Linux-x86_64.sh -b -p ./miniconda3
 
 if test -d conda_env; then
     miniconda3/bin/conda env update -p conda_env -f environment.yml;