From dbf1308c67dafd8658ec5fae8aaa5a5c7b21edb9 Mon Sep 17 00:00:00 2001 From: Promofaux Date: Wed, 27 Jan 2016 22:24:47 +0000 Subject: [PATCH] Change exit to exit 1 --- automated install/basic-install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index d9c01d8a..6bb7dac9 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -330,10 +330,13 @@ checkForDependencies(){ if [[ $updatesToInstall -eq "0" ]]; then echo "::: Your pi is up to date! Continuing with pi-hole installation..." else + abort=true echo "::: There are $updatesToInstall updates availible for your pi!" echo "::: Please run 'sudo apt-get upgrade' before continuing with installation" echo ":::" echo "::: Quitting install, please run 'curl -L install.pi-hole.net | bash' after updating packages!" + echo ":::" + exit #add in a prompt to give users the option to quit installation or continue #echo -n "::: Would you like to continue with the pi-hole installation? (Y/n):" @@ -515,6 +518,7 @@ installPihole | tee $tmpLog $SUDO mv $tmpLog $instalLogLoc displayFinalMessage - $SUDO service dnsmasq start $SUDO service lighttpd start + +