From 72508659c8e55b89946a936699a7d675981412eb Mon Sep 17 00:00:00 2001 From: Luca Milanesio Date: Fri, 10 Jun 2016 09:52:21 +0100 Subject: [PATCH] Fail api.sh in case of any error Whenever an error occurs in the api.sh script we want the script to end and propagate the error upstream to whoever was invoking it. This would allow the use inside a continuous integration system and properly detect and notify failed or incomplete builds. Change-Id: If64853d9c876e7f013bb96bcb911a6492d1a6ce6 --- tools/maven/api.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/maven/api.sh b/tools/maven/api.sh index 54f6994863..c7ce65edc0 100755 --- a/tools/maven/api.sh +++ b/tools/maven/api.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -e # Copyright (C) 2015 The Android Open Source Project #