summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2009-12-03 16:05:25 -0700
committerDave Smith <dizzyd@dizzyd.com>2009-12-03 16:05:25 -0700
commit33e53942d3f21c36094a09f96564129ce9bc10db (patch)
tree3b0634f1c8acd3dc6098d22c79ad9554c68d94bb
parenta979f4f575fbb88a83b79685a2c17ff1db16520d (diff)
Deal more gracefully with errors
-rwxr-xr-xinstall7
1 files changed, 4 insertions, 3 deletions
diff --git a/install b/install
index f88acfa..e11b547 100755
--- a/install
+++ b/install
@@ -1,8 +1,5 @@
#!/bin/bash
-# Fail on first error
-set -e
-
## Check path for exiting rebar instance -- if it's around, use it
## for compilation (NOT installation!)
`which -s rebar`
@@ -13,6 +10,10 @@ else
erlc -I include -o ebin src/*.erl
fi
+if [ $? != 0 ]; then
+ exit $?
+fi
+
## Use application installer to perform actual installation
## into erlang distro
export ERL_LIBS=`(cd .. && pwd)`