mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-28 00:53:19 +00:00
Change exit to exit 1
This commit is contained in:
parent
cc0997f110
commit
dbf1308c67
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue