mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-28 17:13:17 +00:00
Update basic-install.sh
add arithmetic brackets to l309, flip logic. (If equal 0, rather than if more than 0)
This commit is contained in:
parent
80bec9c5cf
commit
f752057fb6
1 changed files with 4 additions and 5 deletions
|
@ -306,7 +306,9 @@ checkForDependencies(){
|
|||
echo " done!"
|
||||
|
||||
echo ":::"
|
||||
if [ $updatesToInstall > 0 ]; then
|
||||
if [[ $updatesToInstall -eq 0 ]]; then
|
||||
echo "::: Your pi is up to date! Continuing with pi-hole installation..."
|
||||
else
|
||||
echo "::: There are $updatesToInstall updates availible for your pi!"
|
||||
echo "::: Please consider running 'sudo apt-get update', followed by 'sudo apt-get upgrade'"
|
||||
echo "::: after pi-hole has finished installing."
|
||||
|
@ -320,9 +322,6 @@ checkForDependencies(){
|
|||
* ) echo "::: Quitting install, please run 'curl -L install.pi-hole.net | bash' after updating packages!"
|
||||
exit 0;;
|
||||
esac
|
||||
|
||||
else
|
||||
echo "::: Your pi is up to date! Continuing with pi-hole installation..."
|
||||
fi
|
||||
|
||||
echo ":::"
|
||||
|
|
Loading…
Reference in a new issue