From bcf5d079a1156edd2e0b9c47b7092a7ae2b2ad43 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Fri, 7 Sep 2018 03:44:03 -0600 Subject: [PATCH] Updated functions to provide code 200 for un-coded circumstances --- root/scripts/borgbackup.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/root/scripts/borgbackup.sh b/root/scripts/borgbackup.sh index e0f5e4e..d494463 100755 --- a/root/scripts/borgbackup.sh +++ b/root/scripts/borgbackup.sh @@ -216,7 +216,8 @@ function checkExist { quit 102 fi else - return 105 + # this code shouldn't be executed, provide checkable return code + return 200 fi } @@ -240,8 +241,8 @@ function ncMaint { maintResult="$?" return $maintResult else - # this code shouldn't be executed, so note the situation for debugging - return 901 + # this code shouldn't be executed, provide checkable return code + return 200 fi } ### End of functions