From f752057fb6ffa333404cf43f469a3c2ddd176db8 Mon Sep 17 00:00:00 2001 From: PromoFaux Date: Wed, 27 Jan 2016 10:12:28 +0000 Subject: [PATCH] Update basic-install.sh add arithmetic brackets to l309, flip logic. (If equal 0, rather than if more than 0) --- automated install/basic-install.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index a8676721..1abc6576 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -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." @@ -319,10 +321,7 @@ checkForDependencies(){ [yY][eE][sS]|[yY] ) echo "::: Continuing!";; * ) 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..." + esac fi echo ":::"