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:
PromoFaux 2016-01-27 10:12:28 +00:00
parent 80bec9c5cf
commit f752057fb6

View file

@ -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 ":::"