mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 23:08:07 +00:00
Always exit
ed with value 1, now exits with proper value.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
b8f1eadb7f
commit
87da40068c
@ -152,8 +152,11 @@ checkout()
|
|||||||
|
|
||||||
# Force updating everything
|
# Force updating everything
|
||||||
echo "::: Running installer to upgrade your installation"
|
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
|
if ${PI_HOLE_FILES_DIR}/automated\ install/basic-install.sh --unattended; then
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
else
|
||||||
|
echo "Unable to complete update, contact Pi-hole"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user