Test for dpkg-query instead of dpkg if we are only going to run dpkg-query within that scope.
This commit is contained in:
parent
146cbe3671
commit
fc578d6ae6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue