Set all shell script to exit on unsuccessful exit code
[lttng-ci.git] / scripts / lttng-modules / build.sh
index 517884a73c260e58593ac03f8d55cdd8b7f4dd52..4f356b9b71d245239b47de17a12e8a202dea4d91 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -exu
 #
 # Copyright (C) 2015 - Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
 #                      Michael Jeanson <mjeanson@efficios.com>
@@ -16,9 +16,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-# Exit with error when using an undefined variable
-set -u
-
 # Use all CPU cores
 NPROC=$(nproc)
 
This page took 0.025401 seconds and 4 git commands to generate.