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:
b7e8250
)
Improve check4root.
author
Michael Prokop
<mika@grml.org>
Thu, 2 Dec 2010 14:18:23 +0000
(15:18 +0100)
committer
Michael Prokop
<mika@grml.org>
Thu, 2 Dec 2010 14:19:06 +0000
(15:19 +0100)
grml-debootstrap
patch
|
blob
|
history
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
a850a4e
..
fb8562c
100755
(executable)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-91,10
+91,6
@@
fi
# make sure we have what we need {{{
check4progs debootstrap dialog || exit 1
# make sure we have what we need {{{
check4progs debootstrap dialog || exit 1
-if ! check4root ; then
- echo "For usage instructions please execute '$PN --help'."
- exit 1
-fi
# }}}
# source main configuration file {{{
# }}}
# source main configuration file {{{
@@
-169,6
+165,13
@@
fi
}
# }}}
}
# }}}
+# check for root permissions {{{
+if ! check4root ; then
+ echo "For usage instructions please execute '$PN --help'."
+ exit 1
+fi
+# }}}
+
# source specified configuration file {{{
if [ -n "$CONFIGFILE" ] ; then
einfo "Reading specified config file $CONFIGFILE."
# source specified configuration file {{{
if [ -n "$CONFIGFILE" ] ; then
einfo "Reading specified config file $CONFIGFILE."