Browse Source

Deal more gracefully with errors

pull/3/head
Dave Smith 15 years ago
parent
commit
33e53942d3
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      install

+ 4
- 3
install View File

@ -1,8 +1,5 @@
#!/bin/bash #!/bin/bash
# Fail on first error
set -e
## Check path for exiting rebar instance -- if it's around, use it ## Check path for exiting rebar instance -- if it's around, use it
## for compilation (NOT installation!) ## for compilation (NOT installation!)
`which -s rebar` `which -s rebar`
@ -13,6 +10,10 @@ else
erlc -I include -o ebin src/*.erl erlc -I include -o ebin src/*.erl
fi fi
if [ $? != 0 ]; then
exit $?
fi
## Use application installer to perform actual installation ## Use application installer to perform actual installation
## into erlang distro ## into erlang distro
export ERL_LIBS=`(cd .. && pwd)` export ERL_LIBS=`(cd .. && pwd)`

Loading…
Cancel
Save