From 766b668fcac5c451328c94d5b28c0b15d74bca34 Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Mon, 26 Mar 2012 15:39:32 +0000 Subject: [PATCH] Bugfix: Correcting check of pipe status. --- sit | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sit b/sit index eb0f2fc..956c4f1 100755 --- a/sit +++ b/sit @@ -170,14 +170,14 @@ else fi sit_sitinfo >> "$LOGDIR/sit_cmd.log" -sit_unpack 2>&1 | tee "$LOGDIR/unpack.log"; ( exit ${PIPESTATUS} ) -sit_prepare 2>&1 | tee "$LOGDIR/prepare.log"; ( exit ${PIPESTATUS} ) -sit_configure 2>&1 | tee "$LOGDIR/configure.log"; ( exit ${PIPESTATUS} ) -sit_build 2>&1 | tee "$LOGDIR/make.log"; ( exit ${PIPESTATUS} ) +sit_unpack 2>&1 | tee "$LOGDIR/unpack.log"; ( exit ${PIPESTATUS[0]} ) +sit_prepare 2>&1 | tee "$LOGDIR/prepare.log"; ( exit ${PIPESTATUS[0]} ) +sit_configure 2>&1 | tee "$LOGDIR/configure.log"; ( exit ${PIPESTATUS[0]} ) +sit_build 2>&1 | tee "$LOGDIR/make.log"; ( exit ${PIPESTATUS[0]} ) -sit_pretest 2>&1 | tee "$LOGDIR/pretest.log"; ( exit ${PIPESTATUS} ) -sit_install 2>&1 | tee "$LOGDIR/make_install.log"; ( exit ${PIPESTATUS} ) -sit_posttest 2>&1 | tee "$LOGDIR/posttest.log"; ( exit ${PIPESTATUS} ) +sit_pretest 2>&1 | tee "$LOGDIR/pretest.log"; ( exit ${PIPESTATUS[0]} ) +sit_install 2>&1 | tee "$LOGDIR/make_install.log"; ( exit ${PIPESTATUS[0]} ) +sit_posttest 2>&1 | tee "$LOGDIR/posttest.log"; ( exit ${PIPESTATUS[0]} ) sit_copy_logs sit_setperms