commit | de1a2e7c812975e9f1009f7239d19045df4a5e5f | [log] [tgz] |
---|---|---|
author | Alex Vakulenko <avakulenko@google.com> | Mon Sep 21 12:15:44 2015 -0700 |
committer | Vitaly Buka <vitalybuka@google.com> | Mon Sep 21 19:53:35 2015 +0000 |
tree | d42db200cf8da66fd5724d84e23172fb30c40cf4 | |
parent | 57fbee3565d5d81f142305c9768f0fd513cdcbfb [diff] |
Fail installing pre-requisites if apt-get fails. I had this happen to me and the script silently failed and continued with building libevent and other things. Yet I couldn't run gyp afterwards. Change-Id: I302b9de29843995cbeece264313c6e20fbd4b741 Reviewed-on: https://weave-review.googlesource.com/1097 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
diff --git a/libweave/examples/ubuntu/prerequisites.sh b/libweave/examples/ubuntu/prerequisites.sh index 8d669a9..d4f12a1 100755 --- a/libweave/examples/ubuntu/prerequisites.sh +++ b/libweave/examples/ubuntu/prerequisites.sh
@@ -17,6 +17,7 @@ libexpat1-dev \ libtool \ ninja-build \ + || exit 1 mkdir -p $ROOT_DIR/third_party/lib $ROOT_DIR/third_party/include 2> /dev/null