From: Kefu Chai Date: Thu, 21 Jul 2016 09:07:58 +0000 (+0800) Subject: build-ceph.sh: fail if run-make-check.sh fails X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=cd3b50337760bc1bf9f7ec8e057f08bb0a83bb07;p=autobuild-ceph.git build-ceph.sh: fail if run-make-check.sh fails `set -e` is not enough, we need to use `-o pipefail` also. > pipefail: the return value of a pipeline is the status of the last > command to exit with a non-zero status, or zero if no command exited > with a non-zero status Fixes: http://tracker.ceph.com/issues/16761 Signed-off-by: Kefu Chai --- diff --git a/build-ceph.sh b/build-ceph.sh index c4c836f..1b2e689 100755 --- a/build-ceph.sh +++ b/build-ceph.sh @@ -1,5 +1,5 @@ #!/bin/bash -x -set -e +set -e -o pipefail bindir=`dirname $0` . $bindir/reset-modules.sh