From 0e61cd296c6005d25cdf702211bb96beda6484cb Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Sun, 13 Jul 2014 13:35:11 +0200 Subject: [PATCH] * Fixed android setup script, if run as update. (git fetch instead of git pull) * Checking return of openssl build now and inform about build errors. --- scripts/android_setup_build_env.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/android_setup_build_env.sh b/scripts/android_setup_build_env.sh index d8d6e8d68..9d0fd2749 100755 --- a/scripts/android_setup_build_env.sh +++ b/scripts/android_setup_build_env.sh @@ -45,7 +45,7 @@ echo "Preparing OpenSSL..." OPENSSL_SRC=$ROOT/openssl-build if [ -d $OPENSSL_SRC ]; then cd $OPENSSL_SRC - git pull + git fetch RETVAL=$? else git clone $OPENSSL_SCM $OPENSSL_SRC @@ -64,9 +64,7 @@ make clean # The makefile has a bug, which aborts during # first compilation. Rerun make to build the whole lib. make -make -make -RETVAL=0 # TODO: Check, why 2 is returned. +RETVAL=$? if [ $RETVAL -ne 0 ]; then echo "Failed to execute make command [$RETVAL]" exit -4