Always exited with value 1, now exits with proper value.

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
Dan Schaper 2017-03-08 14:17:20 -08:00
parent b8f1eadb7f
commit 87da40068c
No known key found for this signature in database
GPG key ID: 572E999E385B7BFC

View file

@ -152,8 +152,11 @@ checkout()
# Force updating everything
echo "::: Running installer to upgrade your installation"
${PI_HOLE_FILES_DIR}/automated\ install/basic-install.sh --unattended || echo "Unable to complete update, contact Pi-hole" && exit 1
exit 0
if ${PI_HOLE_FILES_DIR}/automated\ install/basic-install.sh --unattended; then
exit 0
else
echo "Unable to complete update, contact Pi-hole"
exit 1
fi
}