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 " done!"
echo ":::" 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 "::: There are $updatesToInstall updates availible for your pi!"
echo "::: Please consider running 'sudo apt-get update', followed by 'sudo apt-get upgrade'" echo "::: Please consider running 'sudo apt-get update', followed by 'sudo apt-get upgrade'"
echo "::: after pi-hole has finished installing." echo "::: after pi-hole has finished installing."
@ -319,10 +321,7 @@ checkForDependencies(){
[yY][eE][sS]|[yY] ) echo "::: Continuing!";; [yY][eE][sS]|[yY] ) echo "::: Continuing!";;
* ) echo "::: Quitting install, please run 'curl -L install.pi-hole.net | bash' after updating packages!" * ) echo "::: Quitting install, please run 'curl -L install.pi-hole.net | bash' after updating packages!"
exit 0;; exit 0;;
esac esac
else
echo "::: Your pi is up to date! Continuing with pi-hole installation..."
fi fi
echo ":::" echo ":::"