From patchwork Thu Jan 4 15:15:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 19363 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 6BF7DC323E for ; Thu, 4 Jan 2024 15:15:46 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 7BC9062B5B; Thu, 4 Jan 2024 16:15:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1704381345; bh=COaZoarL8tPyybzE1hzMP4DdBFDzKfNuS0st5xux/Os=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=2jiwNVCVecW3EEomldOx4Rpryw/mlhMzfTKSf0uXMtxnd9dIQ+nB0p2Nov6onAhUt Vuhw0HH+pb2pG7FUj7xKXkiYlVhT2g6LNLQlqlX/1WHvds/a4Z21/aX44p5fUvnixp 2OH4usL4Amys1+R6eb7T61t5aQ0K6IXHbVjtfVpRwbJPHfCpHLBKT7lSJLCBDMeMUF k2QSFEG5Jz2P6ojUxMbZCx264BjM9YKgR/w9xiG7BN3z4yRZ3fS7XOqvvh+wcXB/E8 A+DL4ZuBTciGvz5VMZprkzFMY3XxbSOalBuSUJS5/iuMR1OvLZvgJrcGYY8NuZD28a zrTTPQFZBeQHA== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C332462B41 for ; Thu, 4 Jan 2024 16:15:42 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="v+IUZ2Yt"; dkim-atps=neutral Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 07832226E; Thu, 4 Jan 2024 16:14:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1704381282; bh=COaZoarL8tPyybzE1hzMP4DdBFDzKfNuS0st5xux/Os=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v+IUZ2Yte8cT9i5M8HDLyjxWa/gU2LhoOSarQdHTxTKUyn6e1xnVveSXIdSDNQLwR CI0SoxX7+NCqe/b6Cgxv140Z5I10/HNY86zZHgjr+bCUIbHu1ZC47d3zPuQFcEdcib gTEpBQbWbQXT9RuR1UV+CQ0DYoqixu5VmqKi+/AU= To: libcamera-devel@lists.libcamera.org Date: Thu, 4 Jan 2024 17:15:42 +0200 Message-ID: <20240104151548.2589-3-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240104151548.2589-1-laurent.pinchart@ideasonboard.com> References: <20240104151548.2589-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 2/8] utils: update-mojo.sh: Exit immediately on error X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Cc: Khem Raj Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" If an error occurs there's no point in ignoring it silently and continuing. Exit immediately. Signed-off-by: Laurent Pinchart Reviewed-by: Milan Zamazal Reviewed-by: Kieran Bingham --- utils/update-mojo.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/update-mojo.sh b/utils/update-mojo.sh index 967d139a3f70..831f5ab8753b 100755 --- a/utils/update-mojo.sh +++ b/utils/update-mojo.sh @@ -3,6 +3,8 @@ # SPDX-License-Identifier: GPL-2.0-or-later # Update mojo copy from a chromium source tree +set -e + if [ $# != 1 ] ; then echo "Usage: $0 " exit 1