diff --git a/install b/install index f88acfa5..e11b547d 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)`