From cc0997f1105f692835619991ec1e90635c6bbc25 Mon Sep 17 00:00:00 2001 From: Promofaux Date: Wed, 27 Jan 2016 22:08:43 +0000 Subject: [PATCH] Curl does not wait for user input. Force user to quit installation if there are packages that need to be upgraded. --- automated install/basic-install.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 37f28ca4..d9c01d8a 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -331,17 +331,19 @@ checkForDependencies(){ 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 upgrade' before continuing with installation" + 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!" + 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):" - read -p "::: Would you like to continue with the pi-hole installation? (Y/n):" answer + #read answer - case "$answer" in - [yY][eE][sS]|[yY] ) echo "::: Continuing!";; - * ) echo "::: Quitting install, please run 'curl -L install.pi-hole.net | bash' after updating packages!" - exit 0;; - esac + #case "$answer" in + # [yY][eE][sS]|[yY] ) echo "::: Continuing!";; + # * ) echo "::: Quitting install, please run 'curl -L install.pi-hole.net | bash' after updating packages!" + + #esac fi echo ":::"