From 30de063e7be075b81da610c1d29d935a0c0a3f82 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Fri, 17 Mar 2017 09:43:34 +0100
Subject: [PATCH] Only download yaml if not available

---
 install/from-scratch.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/install/from-scratch.sh b/install/from-scratch.sh
index 4bbaf2f..8e1fc24 100755
--- a/install/from-scratch.sh
+++ b/install/from-scratch.sh
@@ -24,8 +24,10 @@ if [ -d ${BASEDIR}/envs/${NAME} ]; then
   fi
 fi
 
-echo "[>>] Downloading latest bob-devel.yml environment..."
-curl -o ${YML} https://gitlab.idiap.ch/bob/bob/raw/master/doc/${YML}
+if [ ! -e "${YML}" ]; then
+  echo "[>>] Downloading latest bob-devel.yml environment..."
+  curl -o ${YML} https://gitlab.idiap.ch/bob/bob/raw/master/doc/${YML}
+fi
 
 echo "[>>] Creating environment ${NAME} for python ${PYTHON_VERSION} with bob dependencies..."
 ${CONDA} env create --name=${NAME} --file=${YML} python=${PYTHON_VERSION}
-- 
GitLab