Change exit to exit 1

This commit is contained in:
Promofaux 2016-01-27 22:24:47 +00:00
parent cc0997f110
commit dbf1308c67

View file

@ -330,10 +330,13 @@ checkForDependencies(){
if [[ $updatesToInstall -eq "0" ]]; then if [[ $updatesToInstall -eq "0" ]]; then
echo "::: Your pi is up to date! Continuing with pi-hole installation..." echo "::: Your pi is up to date! Continuing with pi-hole installation..."
else else
abort=true
echo "::: There are $updatesToInstall updates availible for your pi!" echo "::: There are $updatesToInstall updates availible for your pi!"
echo "::: Please run 'sudo apt-get upgrade' before continuing with installation" echo "::: Please run 'sudo apt-get upgrade' before continuing with installation"
echo ":::" echo ":::"
echo "::: Quitting install, please run 'curl -L install.pi-hole.net | bash' after updating packages!" echo "::: Quitting install, please run 'curl -L install.pi-hole.net | bash' after updating packages!"
echo ":::"
exit exit
#add in a prompt to give users the option to quit installation or continue #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):" #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 $SUDO mv $tmpLog $instalLogLoc
displayFinalMessage displayFinalMessage
$SUDO service dnsmasq start $SUDO service dnsmasq start
$SUDO service lighttpd start $SUDO service lighttpd start