projects
/
grml-debootstrap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
grml-debootstrap own version detection code simplification
[grml-debootstrap.git]
/
grml-debootstrap
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
b65b26a
..
0c0df3f
100755
(executable)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-8,7
+8,7
@@
# variables {{{
PN="$(basename $0)"
-VERSION="$(dpkg
--list $PN 2>/dev/null| awk '/^i/ {print $3}'
)"
+VERSION="$(dpkg
-query --show --showformat='${Version}' "$PN"
)"
VERSION="${VERSION:-unknown}"
MNTPOINT="/mnt/debootstrap.$$"