1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-01-22 05:51:15 +00:00

Merge pull request #294 from soukron/master

Replaced 'sudo' with $SUDO variable
This commit is contained in:
Mcat12 2016-02-08 16:56:42 -05:00
commit e37495d80b

View File

@ -393,7 +393,7 @@ checkForDependencies() {
fi
echo ":::"
echo -n "::: Checking apt-get for upgraded packages...."
updatesToInstall=$(sudo apt-get -s -o Debug::NoLocking=true upgrade | grep -c ^Inst)
updatesToInstall=$($SUDO apt-get -s -o Debug::NoLocking=true upgrade | grep -c ^Inst)
echo " done!"
echo ":::"
if [[ $updatesToInstall -eq "0" ]]; then