projects
/
grml-debootstrap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix --help parsing.
[grml-debootstrap.git]
/
grml-debootstrap
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
bf97635
..
fe1b22b
100755
(executable)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-1,9
+1,9
@@
-#!/bin/sh
-# Filename: grml-bootstrap
-# Purpose: wrapper around debootstrap for installing plain Debian via
g
rml
+#!/bin/
ba
sh
+# Filename: grml-
de
bootstrap
+# Purpose: wrapper around debootstrap for installing plain Debian via
G
rml
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# 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
.
+# License: This file is licensed under the GPL v2
+
################################################################################
# http://www.debian.org/releases/stable/i386/index.html.en
################################################################################
# http://www.debian.org/releases/stable/i386/index.html.en
@@
-11,7
+11,8
@@
set -e # exit on any error
# variables {{{
PN="$(basename $0)"
# variables {{{
PN="$(basename $0)"
-VERSION='0.39'
+VERSION="$(dpkg --list $PN 2>/dev/null| awk '/^i/ {print $3}')"
+VERSION="${VERSION:-unknown}"
MNTPOINT="/mnt/debootstrap.$$"
# inside the chroot system locales might not be available, so use minimum:
MNTPOINT="/mnt/debootstrap.$$"
# inside the chroot system locales might not be available, so use minimum:
@@
-81,7
+82,7
@@
Send bugreports to the grml-team: bugs (at) grml.org || http://grml.org/bugs/
"
}
"
}
-if [ "$1" = '-h' ] || [ "$1" = '-help' ] ; then
+if [ "$1" = '-h' ] || [ "$1" = '-help' ]
|| [ "$1" = "--help" ]
; then
usage
echo 'Please notice that this script requires root permissions!'
exit 0
usage
echo 'Please notice that this script requires root permissions!'
exit 0