commit:     d203cfd8bad7c7450d9f80d9309cfa6e066b6dc6
Author:     Guy Martin <gmsoft <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 15 11:07:03 2014 +0000
Commit:     Guy Martin <gmsoft <AT> gentoo <DOT> org>
CommitDate: Tue Apr 15 11:07:03 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/releng.git;a=commit;h=d203cfd8

tools/catalyst-auto: Set pipefail to catch failure in verbose mode as well.

---
 tools/catalyst-auto | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/catalyst-auto b/tools/catalyst-auto
index c4796a1..aa4ec1d 100755
--- a/tools/catalyst-auto
+++ b/tools/catalyst-auto
@@ -15,6 +15,9 @@ verbose=0
 keep_tmpdir=0
 testing=0
 
+# Set pipefail so that run_cmd returns the right value in $?
+set -o pipefail
+
 usage() {
   msg=$1
 

Reply via email to