From faf80b3064129069131024253ce42966061aebd7 Mon Sep 17 00:00:00 2001 From: getwildr <93333139+getwildr@users.noreply.github.com> Date: Thu, 30 Nov 2023 12:04:10 +0100 Subject: [PATCH] Update protectionPreRequisites For Use w/o CHATTR protectionPreRequisites returns non ZERO code if - ENABLE_CHATTR false - chattr not available Because [ false == true ] (L139) will return a non zero rc. Adds a return 0 if we reach eventually the end of the func. --- scripts/cnode-helper-scripts/cntools.library | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/cnode-helper-scripts/cntools.library b/scripts/cnode-helper-scripts/cntools.library index 32d638aad..d75b0034c 100644 --- a/scripts/cnode-helper-scripts/cntools.library +++ b/scripts/cnode-helper-scripts/cntools.library @@ -149,6 +149,7 @@ protectionPreRequisites() { fi rm -f "${TMP_DIR}"/test fi + return 0 } # Command : safeDel [path]