Skip to content

Commit

Permalink
* Fixed android setup script, if run as update. (git fetch instead of…
Browse files Browse the repository at this point in the history
… git pull)

* Checking return of openssl build now and inform about build errors.
  • Loading branch information
Armin Novak committed Jul 13, 2014
1 parent 4d3ea77 commit 0e61cd2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/android_setup_build_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0e61cd2

Please sign in to comment.