From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1PlL7l-0001Qo-QB for barebox@lists.infradead.org; Fri, 04 Feb 2011 12:50:54 +0000 From: Marc Kleine-Budde Date: Fri, 4 Feb 2011 13:50:49 +0100 Message-Id: <1296823849-8692-1-git-send-email-mkl@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2] defaultenv/bin/update: fix return values To: sha@pengutronix.de Cc: barebox@lists.infradead.org This patch fixes the return values of the update script. - Exit with an error of the "_update" script fails. - Add a "else; true" to the crc check, otherwise the script exits with "1". Signed-off-by: Marc Kleine-Budde Cc: Jean-Christophe PLAGNIOL-VILLARD --- Changes since v1: - fix exists type in commit message defaultenv/bin/update | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/defaultenv/bin/update b/defaultenv/bin/update index 43d3097..7c37c36 100644 --- a/defaultenv/bin/update +++ b/defaultenv/bin/update @@ -64,7 +64,9 @@ if [ x${mode} != xtftp ] && [ x${mode} != xxmodem ] ; then exit 1 fi -. /env/bin/_update +. /env/bin/_update || exit 1 if [ x${check} = xy ]; then crc32 -f $image -F $part +else + true fi -- 1.7.2.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox