mirror of
https://github.com/correl/rebar.git
synced 2024-11-14 19:19:30 +00:00
Deal more gracefully with errors
This commit is contained in:
parent
a979f4f575
commit
33e53942d3
1 changed files with 4 additions and 3 deletions
7
install
7
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)`
|
||||
|
|
Loading…
Reference in a new issue