From a24a25980697413ae2b5fa67d823fca422f55bb0 Mon Sep 17 00:00:00 2001
From: MatthewLi <matthew.lijun@huawei.com>
Date: Mon, 21 Dec 2015 23:26:23 -0800
Subject: amend env preparation bug fix

JIRA: BOTTLENECK-4

Change-Id: Ib7731b51cb5001aa16ff071b03e236fb379f7a22
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
---
 rubbos/rubbos_scripts/1-1-1/scripts/env_preparation.sh | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'rubbos')

diff --git a/rubbos/rubbos_scripts/1-1-1/scripts/env_preparation.sh b/rubbos/rubbos_scripts/1-1-1/scripts/env_preparation.sh
index fac94032..9bad405e 100755
--- a/rubbos/rubbos_scripts/1-1-1/scripts/env_preparation.sh
+++ b/rubbos/rubbos_scripts/1-1-1/scripts/env_preparation.sh
@@ -22,6 +22,9 @@ EXTERNAL_NET=net04_ext
 
 echo "INFO: Creating openstack credentials .."
 
+if [ -d $RELENG_REPO_DIR ]; then
+    rm -rf ${RELENG_REPO_DIR}
+fi
 mkdir -p ${RELENG_REPO_DIR}
 git config --global http.sslVerify false
 git clone ${RELENG_REPO} ${RELENG_REPO_DIR}
-- 
cgit