summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/lh_config8
1 files 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