From baf8cc3dddfcdc862331a8a97288394e31be6237 Mon Sep 17 00:00:00 2001 From: getwildr <93333139+getwildr@users.noreply.github.com> Date: Thu, 30 Nov 2023 12:09:29 +0100 Subject: [PATCH] Update protectionPreRequisites For Use w/o CHATTR (#1716) ## Description Update protectionPreRequisites For Use w/o CHATTR command available Adds a return 0 if we reach eventually the end of the func. ## Where should the reviewer start? cntools.sh -o w/o chattr and ENABLE_CHATTR false ## Motivation and context cntools.sh -o w/o chattr and ENABLE_CHATTR false does not work protectionPreRequisites returns non ZERO code if - ENABLE_CHATTR false - chattr not available Because [ false == true ] (L139) will return a non zero rc. ## Which issue it fixes? n/a ## How has this been tested? [cntools.sh -o w/o chattr and ENABLE_CHATTR false] is launching OK up to the main menu. --- 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]