mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
add in a prompt to give users the option to quit installation or continue
This commit is contained in:
parent
e99be28a73
commit
4cedca3427
1 changed files with 10 additions and 1 deletions
|
@ -310,7 +310,16 @@ checkForDependencies(){
|
||||||
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."
|
||||||
echo ":::"
|
echo ":::"
|
||||||
echo "::: Continuing with pi-hole installation..."
|
#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 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
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "::: Your pi is up to date! Continuing with pi-hole installation..."
|
echo "::: Your pi is up to date! Continuing with pi-hole installation..."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue