Test for dpkg-query instead of dpkg if we are only going to run dpkg-query within that scope.

This commit is contained in:
Chris Lamb 2009-01-01 21:05:58 +00:00 committed by Daniel Baumann
parent 146cbe3671
commit fc578d6ae6
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ Local_arguments ()
case "${1}" in
--dump)
# Dump version
if [ -x "$(which dpkg 2>/dev/null)" ]
if [ -x "$(which dpkg-query 2>/dev/null)" ]
then
echo "${0}: This is live-helper version $(dpkg-query -f='${Version}') --show live-helper"
else