utils: update-mojo.sh: Exit immediately on error

If an error occurs there's no point in ignoring it silently and
continuing. Exit immediately.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Milan Zamazal <mzamazal@redhat.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Laurent Pinchart 2024-01-04 17:15:42 +02:00 committed by Kieran Bingham
parent cb69c6e843
commit 09af551b93

View file

@ -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 <chromium dir>"
exit 1