From ef8a1b4ca991ea7d0b960137e0ae0fcbcaea8f8c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 27 Oct 2008 06:25:25 +0100 Subject: Improving version output of lh_config --dump. --- helpers/lh_config | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/helpers/lh_config b/helpers/lh_config index fd1b105..9b38c8a 100755 --- a/helpers/lh_config +++ b/helpers/lh_config @@ -153,8 +153,12 @@ Local_arguments () case "${1}" in --dump) # Dump version - echo "${0}: This is live-helper version ${VERSION}" - dpkg -l live-helper || true + 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}" + fi # Dump conffile contents Print_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source -- cgit v1.0