Display Forcing rebuild message only if ISO does not exist yet
authorMichael Prokop <mika@grml.org>
Sat, 12 Sep 2009 00:47:51 +0000 (02:47 +0200)
committerMichael Prokop <mika@grml.org>
Sat, 12 Sep 2009 00:47:51 +0000 (02:47 +0200)
grml-live

index 0a8fb3a..a32f9ad 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -993,7 +993,7 @@ elif [ -n "$SKIP_MKISOFS" ] ; then
 else
    mkdir -p "$ISO_OUTPUT" || bailout 6 "Problem with creating $ISO_OUTPUT for stage 'iso build'"
 
 else
    mkdir -p "$ISO_OUTPUT" || bailout 6 "Problem with creating $ISO_OUTPUT for stage 'iso build'"
 
-   if $FORCE_ISO_REBUILD ; then
+   if $FORCE_ISO_REBUILD && ! -f "${ISO_OUTPUT}/${ISO_NAME}"; then
       log   "Forcing rebuild of ISO because files on ISO have been modified."
       einfo "Forcing rebuild of ISO because files on ISO have been modified."
    fi
       log   "Forcing rebuild of ISO because files on ISO have been modified."
       einfo "Forcing rebuild of ISO because files on ISO have been modified."
    fi