1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 23:08:07 +00:00

run apt-get install as sudo when resolving dependencies

This commit is contained in:
Promofaux 2016-01-24 20:35:24 +00:00
parent 2d4ebf5eb5
commit 649a565801

View File

@ -324,7 +324,7 @@ checkForDependencies(){
echo -n "::: Checking for $i..."
if [ $(dpkg-query -W -f='${Status}' $i 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
echo -n " Not found! Installing...."
apt-get -y -qq install $i > /dev/null & spinner $!
$SUDO apt-get -y -qq install $i > /dev/null & spinner $!
echo " done!"
else
echo " already installed!"