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:
4f436b4
)
grml-debootstrap own version detection code simplification
author
Patrick Schleizer
<adrelanos@riseup.net>
Mon, 17 Feb 2014 22:52:43 +0000
(22:52 +0000)
committer
Patrick Schleizer
<adrelanos@riseup.net>
Mon, 17 Feb 2014 22:52:43 +0000
(22:52 +0000)
grml-debootstrap
patch
|
blob
|
history
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.$$"