[Android] Stop when first error occurs
authorSangjung Woo <sangjung.woo@samsung.com>
Mon, 11 May 2020 09:53:57 +0000 (18:53 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 12 May 2020 00:17:30 +0000 (09:17 +0900)
When running build-android-lib.sh, it does not stop even though error
occur (e.g. command not found). It makes users hard to find the reason
of the problem. This patch stops first error occurs so users can fix it
easily.

Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
api/android/build-android-lib.sh

index 7174e4d..12f662b 100644 (file)
@@ -27,6 +27,7 @@
 # For example, to build library with core plugins for arm64-v8a
 # ./build-android-lib.sh --api_option=lite --target_abi=arm64-v8a
 #
+set -e
 
 # API build option
 # 'all' : default