Set all shell script to exit on unsuccessful exit code
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 26 Aug 2015 16:12:06 +0000 (12:12 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Wed, 26 Aug 2015 16:12:06 +0000 (12:12 -0400)
14 files changed:
scripts/babeltrace/build.sh
scripts/babeltrace/pylint.sh
scripts/babeltrace/scan-build.sh
scripts/kernel/build.sh
scripts/liburcu/build.sh
scripts/liburcu/scan-build.sh
scripts/lttng-modules/build.sh
scripts/packaging/el7/add-efficios-repo.sh
scripts/packaging/el7/install-lttng-packages.sh
scripts/packaging/sles12/add-efficios-repo.sh
scripts/packaging/sles12/install-lttng-packages.sh
scripts/packaging/systemd-enable-and-start-relayd.sh
scripts/packaging/systemd-enable-and-start-sessiond.sh
scripts/packaging/test-run.sh

index e9f06b1073a6eb6b68f0905a0ed6bb3af5b9810a..b9dc04111365e131ae44c175ddee08d7a448395b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -exu
 #
 # Copyright (C) 2015 - Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
 #
index 0971938529e72233540c260cc43040a6ceddfe3d..7c310294a8bc5617b945b7c1c67e90701bbaaa1d 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -exu
 #
 # Copyright (C) 2015 - Michael Jeanson <mjeanson@efficios.com>
 #
index ed80c0e2b442cfcf69a2efa91621eb565c5dd85f..e67305a49e9daccfef821e08e4ac505f62bf613f 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -exu
 #
 # Copyright (C) 2015 - Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
 #
index ad96d89a3011e5b52a8857d3a0aa2226cb9442a1..11f1af13fdacbc8ed69615a992e9554c7288ebbf 100644 (file)
@@ -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
-
 #Check if ccache is present
 #if [ -d /usr/lib/ccache ]; then
 #      echo "Using CCACHE"
index 472dc28a9f091f85a49d6942bec38c2eac0fdd14..042cdf5151688489170b212ecf95f15835aee556 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -exu
 #
 # Copyright (C) 2015 - Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
 #
index ed80c0e2b442cfcf69a2efa91621eb565c5dd85f..e67305a49e9daccfef821e08e4ac505f62bf613f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -exu
 #
 # Copyright (C) 2015 - Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
 #
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)
 
index a7c57f119a344906a8c6a686d749f747f2c7f32d..d4eaf2029030fae34acb84552f21f0b755aedb95 100755 (executable)
@@ -1,4 +1,4 @@
-#/bin/sh
+#/bin/sh -exu
 
 yum -y install wget
 
index e269a271b8ac832bc9b1b60f713ec9586155ac66..61a9b685edcf1d4a00dce8aa4cac761e4a2af289 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -exu
 
 yum install -y kmod-lttng-modules lttng-tools babeltrace
 
index b56f0dea871ca5fa8c882d09b562ff7110d021dd..5949b890a1916540073be80af319c87c8b602b83 100755 (executable)
@@ -1,4 +1,4 @@
-#/bin/sh
+#/bin/sh -exu
 
 zypper --non-interactive addrepo https://packages.efficios.com/repo.files/EfficiOS-SLE12-x86-64.repo
 
index 41eac1916a0ee1b3d8a6f087f0f2978a484f7ff7..12ae5add77f73dbb016a2d8df3c40a8bb3c0f6c7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -exu
 
 zypper --non-interactive install lttng-modules-kmp-default lttng-tools babeltrace
 
index 045f52ec044817d178308a974fb395bd4be17782..344bb53c175fad65cfca1369f5f4c0ee503becd2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -exu
 
 systemctl enable lttng-relayd
 
index c1f2eb704ad0e2fc55668b9e4c1e214e92be9845..3b56bccda698270005f2d9984ee6f13a70607e40 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -exu
 
 systemctl enable lttng-sessiond
 
index 751b0e2aa353035599aa285b9f44e7ca7ec37009..c4b98898546d8700bf4a3d2eb009a3a8e63ac32d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -exu
 
 lttng create
 lttng enable-event -a -k
This page took 0.027432 seconds and 4 git commands to generate.