diff options
author | Daniel Baumann <daniel@debian.org> | 2008-10-27 06:25:25 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:43 +0100 |
commit | ef8a1b4ca991ea7d0b960137e0ae0fcbcaea8f8c (patch) | |
tree | 21bc7ae2973f10c824f57a81759a604071c6881d /helpers/lh_config | |
parent | d33dce984d82ac5c9747d8f8588dbcf2beee5a6e (diff) | |
download | vyos-live-build-ef8a1b4ca991ea7d0b960137e0ae0fcbcaea8f8c.tar.gz vyos-live-build-ef8a1b4ca991ea7d0b960137e0ae0fcbcaea8f8c.zip |
Improving version output of lh_config --dump.
Diffstat (limited to 'helpers/lh_config')
-rwxr-xr-x | helpers/lh_config | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/helpers/lh_config b/helpers/lh_config index fd1b10518..9b38c8abd 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 |