- ( cd "$BUILD_TARGET" &&
- mkisofs -V "grml $VERSION" -publisher 'grml-live | grml.org' \
- -l -r -J -no-emul-boot -boot-load-size 4 -boot-info-table \
- -b $BOOT_FILE \
- -o "${ISO_TARGET}/${ISO_NAME}" .
- )
- einfo "Finished execution of stage 'iso build'" ; eend 0
- log "Finished execution of stage 'iso build' [$(date)]"
+ CURRENT_DIR=$(pwd)
+ cd "$BUILD_TARGET" &&
+ mkisofs -V "grml $VERSION" -publisher 'grml-live | grml.org' \
+ -l -r -J -no-emul-boot -boot-load-size 4 -boot-info-table \
+ -b $BOOT_FILE \
+ -o "${ISO_TARGET}/${ISO_NAME}" . ; RC=$?
+ cd $CURRENT_DIR
+ if [ "$RC" = 0 ] ; then
+ log "Finished execution of stage 'iso build' [$(date)]"
+ einfo "Finished execution of stage 'iso build'" ; eend 0
+ else
+ log "There was an error ($RC) executing stage 'iso build' [$(date)]"
+ eerror "There was an error executing stage 'iso build'" ; eend 1
+ bailout $RC
+ fi