From 42afaa9f66668de4900997b1393e98bed0635bad Mon Sep 17 00:00:00 2001 From: bcambl Date: Mon, 25 Apr 2016 17:31:00 -0600 Subject: [PATCH] remove dpkg-query dependency from sudo check --- automated install/basic-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 699f68ee..3cff09a6 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -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."