summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-01-04 17:15:42 +0200
committerKieran Bingham <kieran.bingham@ideasonboard.com>2024-01-09 15:39:04 +0000
commit09af551b93628dbc644cbc2f5bd12c8073c4b668 (patch)
tree484a8400c218a3dfd9892a44a867a0b34137362c
parentcb69c6e84356b2e137d5b27885223a8514c7e802 (diff)
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>
-rwxr-xr-xutils/update-mojo.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/update-mojo.sh b/utils/update-mojo.sh
index 967d139a..831f5ab8 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 <chromium dir>"
exit 1