projects
/
grml-debootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d69218f
)
Check for $STAGES/grml-debootstrap
author
Michael Prokop
<mika@grml.org>
Thu, 12 Apr 2007 09:42:11 +0000
(11:42 +0200)
committer
Michael Prokop
<mika@grml.org>
Thu, 12 Apr 2007 09:42:11 +0000
(11:42 +0200)
grml-debootstrap
patch
|
blob
|
history
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
600b5c9
..
f4838f0
100644
(file)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-4,7
+4,7
@@
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
-# Latest change: Don Apr 12 11:
39:2
2 CEST 2007 [mika]
+# Latest change: Don Apr 12 11:
42:0
2 CEST 2007 [mika]
################################################################################
# http://www.debian.org/releases/stable/i386/index.html.en
################################################################################
# http://www.debian.org/releases/stable/i386/index.html.en
@@
-59,9
+59,11
@@
if [ -z "$STAGES" ] ; then
[ -d "$STAGES" ] || mkdir -p "$STAGES"
fi
[ -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=''
fi
PARTITION=''