]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps: check the exit status for the $builddepcmd 22682/head
authorYunchuan Wen <yunchuan.wen@kylin-cloud.com>
Sun, 24 Jun 2018 01:48:50 +0000 (09:48 +0800)
committerYunchuan Wen <yunchuan.wen@kylin-cloud.com>
Sun, 24 Jun 2018 01:48:50 +0000 (09:48 +0800)
in some case, the $builddepcmd will failed without any "error:" output.
so we should check the exit status to handle it.

Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
install-deps.sh

index 7ff14a83e8f50d8e6b4e96d5d7b7696998503232..0259bc67f6a74e3a1130d9c5889807970057d775 100755 (executable)
@@ -253,6 +253,7 @@ else
         esac
         munge_ceph_spec_in $DIR/ceph.spec
         $SUDO $builddepcmd $DIR/ceph.spec 2>&1 | tee $DIR/yum-builddep.out
+        [ ${PIPESTATUS[0]} -ne 0 ] && exit 1
        if [ -n "$dts_ver" ]; then
             ensure_decent_gcc_on_rh $dts_ver
        fi