From 34801af904f5e819dacdab0f09966c20d4f65a59 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Leroy?= <frederic.leroy@b-com.com>
Date: Tue, 7 Jun 2016 10:48:48 +0200
Subject: [PATCH] build_oai: exit early on error

There are a lot of case where the build scripts fails. Despite this, the
build script happily continue to the end and tells "Successfully built
xxxx".
This fix ensure the build stops early with the first error message on the
bottom of the log.
---
 cmake_targets/build_oai | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cmake_targets/build_oai b/cmake_targets/build_oai
index d1306b804b..42bd6c82d7 100755
--- a/cmake_targets/build_oai
+++ b/cmake_targets/build_oai
@@ -33,6 +33,7 @@
 # brief OAI automated build tool that can be used to install, compile, run OAI.
 # author  Navid Nikaein, Lionel GAUTHIER, Laurent Thomas
 
+set -e
 
 ################################
 # include helper functions
-- 
GitLab