Commit dfd6872f authored by Jondy Zhao's avatar Jondy Zhao

Fix no exit when building error

parent 0b867f71
...@@ -26,9 +26,11 @@ if [[ ! -f bootstrap.py ]] ; then ...@@ -26,9 +26,11 @@ if [[ ! -f bootstrap.py ]] ; then
echo "Download $slapos_home/bootstrap.py" echo "Download $slapos_home/bootstrap.py"
python -S -c 'import urllib2;print urllib2.urlopen("http://git.erp5.org/gitweb/slapos.core.git/blob_plain/HEAD:/bootstrap.py").read()' > bootstrap.py python -S -c 'import urllib2;print urllib2.urlopen("http://git.erp5.org/gitweb/slapos.core.git/blob_plain/HEAD:/bootstrap.py").read()' > bootstrap.py
python -S bootstrap.py python -S bootstrap.py
(($?)) && echo "SlapOS bootstrap failed." && exit 1
fi fi
bin/buildout -v -N || (echo "Buildout SlapOS failed."; exit 1) bin/buildout -v -N
(($?)) && echo "Buildout SlapOS failed." && exit 1
# apply patches # apply patches
patch_file=/etc/slapos/patches/slapos-core-format.patch patch_file=/etc/slapos/patches/slapos-core-format.patch
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment