Stop immediately if error during erlang build

This commit is contained in:
Akash Manohar J 2014-11-30 12:48:11 +05:30
parent dc65f3a51c
commit 6c621b38a1

View File

@ -9,15 +9,14 @@ install_erlang() {
# running this in a subshell
# because we don't want to disturb current working dir
echo
(
cd $(dirname $source_path)
tar zxf $source_path
tar zxf $source_path || exit 1
cd $(untar_path $1)
./otp_build autoconf
./configure --prefix=$install_path
make
make install
./otp_build autoconf || exit 1
./configure --prefix=$install_path || exit 1
make || exit 1
make install || exit 1
)
}