From 87da40068ccfb09118927b7ebf9c471d519c28e8 Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Wed, 8 Mar 2017 14:17:20 -0800 Subject: [PATCH] Always `exit`ed with value 1, now exits with proper value. Signed-off-by: Dan Schaper --- advanced/Scripts/piholeCheckout.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/advanced/Scripts/piholeCheckout.sh b/advanced/Scripts/piholeCheckout.sh index 94ae5a16..cabafc04 100644 --- a/advanced/Scripts/piholeCheckout.sh +++ b/advanced/Scripts/piholeCheckout.sh @@ -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 }