From d986da63a5742dc2a5e4eab490740e58a098ee22 Mon Sep 17 00:00:00 2001 From: jeremysherriff Date: Fri, 19 Oct 2018 18:27:35 +1300 Subject: [PATCH] Pass gravity exit code back to caller to allow for cron error handling Signed-off-by: jeremysherriff --- pihole | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pihole b/pihole index 0d6a45ce..fb398f29 100755 --- a/pihole +++ b/pihole @@ -80,7 +80,7 @@ reconfigurePiholeFunc() { updateGravityFunc() { "${PI_HOLE_SCRIPT_DIR}"/gravity.sh "$@" - exit 0 + exit $? } queryFunc() {