+#!/bin/sh
# Filename: /usr/share/grml-live/buildd/execute.sh
# Purpose: main execution file for grml-live buildd
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
. /usr/share/grml-live/buildd/functions.sh || exit 1
# execute main grml-live
-grml_live_run
+grml_live_run || create_logs
# store logs on remote server
upload_logs
iso_details
# create logs for adding to mail, but only if it fails
-create_logs
-send_mail -e
+send_mail
# move the ISO to final destination
store_iso