Exit if snapshot creation fails

svn path=/trunk/; revision=572
This commit is contained in:
Andrew Gaffney 2008-09-04 02:33:23 +00:00
parent 77d67f9f11
commit 1199ff88ac
2 changed files with 4 additions and 0 deletions

View file

@ -127,6 +127,7 @@ done
# Create snapshot
if ! run_cmd "catalyst -c ${CATALYST_CONFIG} -s ${DATESTAMP}" "${TMPDIR}/log/snapshot-${DATESTAMP}.log"; then
send_email "Catalyst build error - snapshot" "$(tail -n 200 ${TMPDIR}/log/snapshot-${DATESTAMP}.log)"
exit 1
fi
for i in ${SPECS}; do