From e2c3d565e30579a781f33667c68e129420095160 Mon Sep 17 00:00:00 2001
From: Pietro Incardona <incardon@mpi-cbg.de>
Date: Mon, 7 Sep 2015 20:50:58 +0200
Subject: [PATCH] Fixing install and jenkin scripts

---
 build_pdata.sh | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/build_pdata.sh b/build_pdata.sh
index 96a3eafe..c30929bb 100644
--- a/build_pdata.sh
+++ b/build_pdata.sh
@@ -8,6 +8,16 @@ echo "Machine: $2"
 mkdir src/config
 
 git submodule init
+if [ $? -ne 0 ]; then
+  echo -e "Configure\033[91;5;1m FAILED \033[0m"
+  exit 1
+fi
+
+git submodule update
+if [ $? -ne 0 ]; then
+  echo -e "Configure\033[91;5;1m FAILED \033[0m"
+  exit 1
+fi
 
 # pull from all the projects
 cd openfpm_data
@@ -42,12 +52,6 @@ if [ $? -ne 0 ]; then
 fi
 cd ..
 
-git submodule update
-if [ $? -ne 0 ]; then
-  echo -e "Configure\033[91;5;1m FAILED \033[0m"
-  exit 1
-fi
-
 cd openfpm_data
 git checkout develop
 cd ..
-- 
GitLab