remove dpkg-query dependency from sudo check

This commit is contained in:
bcambl 2016-04-25 17:31:00 -06:00
parent 13a479a9f6
commit 42afaa9f66
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ else
echo "::: sudo will be used for the install."
# Check if it is actually installed
# If it isn't, exit because the install cannot complete
if [[ $(dpkg-query -s sudo) ]];then
if [ -x "$(command -v sudo)" ];then
export SUDO="sudo"
else
echo "::: sudo is needed for the Web interface to run pihole commands. Please run this script as root and it will be automatically installed."