mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
run apt-get install as sudo when resolving dependencies
This commit is contained in:
parent
2d4ebf5eb5
commit
649a565801
1 changed files with 1 additions and 1 deletions
|
@ -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!"
|
||||
|
|
Loading…
Reference in a new issue