1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 23:08:07 +00:00

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
}