Skip to content

Commit

Permalink
grml-debootstrap own version detection code simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Schleizer committed Feb 17, 2014
1 parent 4f436b4 commit 80fae65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grml-debootstrap
Expand Up @@ -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.$$"

Expand Down

0 comments on commit 80fae65

Please sign in to comment.