From: Michael Prokop Date: Thu, 12 Apr 2007 09:42:11 +0000 (+0200) Subject: Check for $STAGES/grml-debootstrap X-Git-Tag: 0.6~3 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=0e331baedd30bdf788922f8d4f4082d960498be7;hp=d69218f11da4d5c71c1829fbb671d167432d434c Check for $STAGES/grml-debootstrap --- diff --git a/grml-debootstrap b/grml-debootstrap index 600b5c9..f4838f0 100644 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Don Apr 12 11:39:22 CEST 2007 [mika] +# Latest change: Don Apr 12 11:42:02 CEST 2007 [mika] ################################################################################ # http://www.debian.org/releases/stable/i386/index.html.en @@ -59,9 +59,11 @@ if [ -z "$STAGES" ] ; then [ -d "$STAGES" ] || mkdir -p "$STAGES" fi -if grep -q done $STAGES/grml-debootstrap ; then - eerror "Error: grml-debootstrap has been executed already, won't continue therefore." - eerror "If you want to re-execute grml-debootstrap just manually remove ${STAGES}" ; eend 1 +if [ -r $STAGES/grml-debootstrap ] ; then + if grep -q done $STAGES/grml-debootstrap ; then + eerror "Error: grml-debootstrap has been executed already, won't continue therefore." + eerror "If you want to re-execute grml-debootstrap just manually remove ${STAGES}" ; eend 1 + fi fi PARTITION=''