projects
/
grml-debootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d222915
)
Don't clean up stages after execution
author
Michael Prokop
<mika@grml.org>
Thu, 12 Apr 2007 09:39:55 +0000
(11:39 +0200)
committer
Michael Prokop
<mika@grml.org>
Thu, 12 Apr 2007 09:39:55 +0000
(11:39 +0200)
grml-debootstrap
patch
|
blob
|
history
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
126e09e
..
600b5c9
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: D
ie Apr 10 10:51:26
CEST 2007 [mika]
+# Latest change: D
on Apr 12 11:39:22
CEST 2007 [mika]
################################################################################
# http://www.debian.org/releases/stable/i386/index.html.en
################################################################################
# http://www.debian.org/releases/stable/i386/index.html.en
@@
-59,6
+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
+fi
+
PARTITION=''
DIRECTORY=''
PARTITION=''
DIRECTORY=''
@@
-269,11
+274,11
@@
fscktool() {
stage fscktool && fscktool && stage fscktool done
# }}}
stage fscktool && fscktool && stage fscktool done
# }}}
-#
finally remove stages on main system so grml-deboostrap can be reexecuted
{{{
- rm -rf "$STAGES"
+#
stages
{{{
+ echo done > $STAGES/grml-debootstrap
# }}}
einfo "Finished execution of $0 - enjoy your Debian system." ; eend 0
## END OF FILE #################################################################
# }}}
einfo "Finished execution of $0 - enjoy your Debian system." ; eend 0
## END OF FILE #################################################################
-# vim: ai tw=
8
0 expandtab foldmethod=marker
+# vim: ai tw=
10
0 expandtab foldmethod=marker