Skip to content

Commit

Permalink
Update protectionPreRequisites For Use w/o CHATTR (#1716)
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
getwildr authored Nov 30, 2023
1 parent f6f5244 commit baf8cc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/cnode-helper-scripts/cntools.library
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ protectionPreRequisites() {
fi
rm -f "${TMP_DIR}"/test
fi
return 0
}

# Command : safeDel [path]
Expand Down

0 comments on commit baf8cc3

Please sign in to comment.