Do not re-create live-directory in $UPDATE
authorMichael Prokop <devnull@localhost>
Mon, 29 Oct 2007 23:45:28 +0000 (00:45 +0100)
committerMichael Prokop <devnull@localhost>
Mon, 29 Oct 2007 23:45:28 +0000 (00:45 +0100)
grml-live

index d776c19..1cfafc0 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -465,7 +465,7 @@ if [ -f "$BUILD_OUTPUT"/live/grml.squashfs -a -z "$UPDATE" ] ; then
    log "$BUILD_OUTPUT/live exists already, skipping stage 'squashfs'"
    ewarn "$BUILD_OUTPUT/live exists already, skipping stage 'squashfs'" ; eend 0
 else
-   mkdir "$BUILD_OUTPUT"/live
+   [ -d "$BUILD_OUTPUT"/live ] || mkdir "$BUILD_OUTPUT"/live
    mksquashfs $CHROOT_OUTPUT/* $BUILD_OUTPUT/live/grml.squashfs -noappend
    log "Finished execution of stage 'squashfs' [$(date)]"
    einfo "Finished execution of stage 'squashfs'" ; eend 0