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
This commit is contained in:
Luca Milanesio 2016-06-10 09:52:21 +01:00 committed by Edwin Kempin
parent 270e105f88
commit 72508659c8
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -e
# Copyright (C) 2015 The Android Open Source Project
#