Do not fail when devops-utils repo exists
Related-Prod: PRODX-3456
Change-Id: I8a514f60f09e3ecd31557ab6e9f4eb54f1cfb0c9
diff --git a/de/heat-templates/scripts/launch.sh b/de/heat-templates/scripts/launch.sh
index 7c8a939..081e515 100644
--- a/de/heat-templates/scripts/launch.sh
+++ b/de/heat-templates/scripts/launch.sh
@@ -71,7 +71,9 @@
sleep 15
curl --connect-timeout 10 --retry 12 --retry-delay 10 ${DEVOPS_UTILS_REPO} || (sleep 1; /bin/false)
-git clone ${DEVOPS_UTILS_REPO} ${DEVOPS_UTILS_DST}
+if [[ ! -d ${DEVOPS_UTILS_DST} ]]; then
+ git clone ${DEVOPS_UTILS_REPO} ${DEVOPS_UTILS_DST}
+fi
pushd ${DEVOPS_UTILS_DST}
if echo "$DEVOPS_UTILS_REFSPEC" |grep -q "^refs"; then
git fetch ${DEVOPS_UTILS_REPO} ${DEVOPS_UTILS_REFSPEC}