diff options
author | Arne Schwabe <arne@rfc2549.org> | 2014-01-24 23:05:10 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2014-01-24 23:05:10 +0100 |
commit | 491ea0e8bd9a9e200d2fe4e54c0084d54642eb3e (patch) | |
tree | d9e9f4dd5468a20279497a316e3ee867dea5ff81 /misc | |
parent | e1f23a405d2d5ae64d94d1c6461167dac17ca1bb (diff) |
better error handling
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/build-native.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/misc/build-native.sh b/misc/build-native.sh index 34cd137d..e1825e7d 100755 --- a/misc/build-native.sh +++ b/misc/build-native.sh @@ -1,3 +1,9 @@ +#!/bin/bash + +# Exit on errors +set -e + +# Generate git config if the openvpn directory is checked out from git if [ -d openvpn/.git ]; then GIT=git cd openvpn @@ -17,6 +23,7 @@ if [ -d openvpn/.git ]; then fi ndk-build APP_API=all -j 8 + if [ $? = 0 ]; then rm -rf build/native-libs/ @@ -36,4 +43,6 @@ if [ $? = 0 ]; then mkdir -p $builddir cp -v $arch/*.so $builddir done +else + exit $? fi |