diff --git a/bootstrap-conda.sh b/bootstrap-conda.sh
index 3629310ce159c50cdffbecf47e07fe7ca05fc9de..8cb80a54d7df7ff1e9dde26c5f992a56dada8d7a 100755
--- a/bootstrap-conda.sh
+++ b/bootstrap-conda.sh
@@ -44,7 +44,7 @@ if [ ! -d ${PREFIX} ]; then
   curl --silent https://gitlab.idiap.ch/bob/bob.admin/raw/master/${ARCH}/devel-py${pyver}.txt > env.txt
   echo "[++] Bootstrapping conda installation at ${PREFIX}..."
   run_cmd ${CONDA_FOLDER}/bin/conda create --prefix ${PREFIX} --file env.txt --yes
-  if [ "${ARCH}" == "macosx" && -e "${PREFIX}/lib/libjpeg.8.dylib" ]; then
+  if [ "${ARCH}" == "macosx" ] && [ -e "${PREFIX}/lib/libjpeg.8.dylib" ]; then
     run_cmd install_name_tool -id @rpath/libjpeg.8.dylib ${PREFIX}/lib/libjpeg.8.dylib
   fi
   run_cmd ${CONDA_FOLDER}/bin/conda clean --lock