aboutsummaryrefslogtreecommitdiff
path: root/android-chromium
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2016-05-12 10:42:39 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2016-05-12 10:42:39 +0300
commit9a67bad50dcaf57ade73a0baef9637d8d09ba8f2 (patch)
treed0339464200694743ab797c824d30bd507cc0a21 /android-chromium
parent307cb0b97d09c296ddf379e2302ead1095542dfa (diff)
android-chromium: add set -e and test chromium dir before creation
Change-Id: Ia408948b1a85a2caba1cf5b620e96fc4298bb950 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'android-chromium')
-rwxr-xr-xandroid-chromium/chromium-build.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/android-chromium/chromium-build.sh b/android-chromium/chromium-build.sh
index e6510f6f33..335020013b 100755
--- a/android-chromium/chromium-build.sh
+++ b/android-chromium/chromium-build.sh
@@ -1,5 +1,7 @@
#!/bin/bash
+set -ex
+
setup_depottools() {
sudo apt-get update
rm -rf depot_tools
@@ -8,7 +10,7 @@ setup_depottools() {
}
setup_chromium() {
- mkdir chromium
+ test -d chromium || mkdir chromium
cd chromium
fetch --nohooks android
}
@@ -58,7 +60,6 @@ apply_patches() {
}
main() {
- set -xe
setup_depottools
setup_chromium
sync_source