From: Michael Prokop Date: Wed, 24 Oct 2007 08:41:55 +0000 (+0200) Subject: buildd/functions.sh: do not mv files if there was an error X-Git-Tag: 0.0.7~46 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=8fa72c0d34ffb96327ebd3008b5529465b54b88f;hp=fd9bfe9232349799fe3f00478caecf8871c9aa81 buildd/functions.sh: do not mv files if there was an error --- diff --git a/buildd/functions.sh b/buildd/functions.sh index d5c65ef..d33955b 100755 --- a/buildd/functions.sh +++ b/buildd/functions.sh @@ -94,8 +94,10 @@ mutt -s "$SCRIPTNAME [${DATE}] - $RC_INFO" \ # make sure we store the final iso: store_iso() { - [ -d "$ISO_DIR" ] || mkdir "$ISO_DIR" - mv $OUTPUT_DIR/grml_isos/$ISO_NAME $ISO_DIR + if [ "$RC" = "0" ] ; then + [ -d "$ISO_DIR" ] || mkdir "$ISO_DIR" + mv $OUTPUT_DIR/grml_isos/$ISO_NAME $ISO_DIR + fi } # allow clean exit: diff --git a/debian/changelog b/debian/changelog index 87bf9c0..a274270 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,12 +1,15 @@ grml-live (0.0.7) unstable; urgency=low - * Reworked buildd concept. Now we have a seperate - /usr/share/grml-live/buildd/functions.sh for generic - stuff and /etc/grml/grml-buildd.conf as configuration - file. Use grml-buildd.{stdout,stderr} instead of - grml-live.{stdout,stderr} as log files. - * Use version number of grml-live inside script and write - it to the logs as well. + * Reworked buildd concept. + - Now we have a seperate + /usr/share/grml-live/buildd/functions.sh for generic stuff + and /etc/grml/grml-buildd.conf as configuration file. + - Use grml-buildd.{stdout,stderr} instead of + grml-live.{stdout,stderr} as log files. + - buildd/functions.sh: do not mv files if there was an error + during grml-live execution + * Use version number of grml-live inside script and write it to + the logs as well. * Log executed grml-live command line. * Set FAI_DEBOOTSTRAP_OPTS="--exclude=dhcp-client,info" by default.