Improving version output of lh_config --dump.

This commit is contained in:
Daniel Baumann 2008-10-27 06:25:25 +01:00
parent d33dce984d
commit ef8a1b4ca9
1 changed files with 6 additions and 2 deletions

View File

@ -153,8 +153,12 @@ Local_arguments ()
case "${1}" in case "${1}" in
--dump) --dump)
# Dump version # Dump version
if [ -x "$(which dpkg 2>/dev/null)" ]
then
echo "${0}: This is live-helper version $(dpkg-query --show -f='${Version}')"
else
echo "${0}: This is live-helper version ${VERSION}" echo "${0}: This is live-helper version ${VERSION}"
dpkg -l live-helper || true fi
# Dump conffile contents # Dump conffile contents
Print_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source Print_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source