Skip to content

Commit

Permalink
Update protectionPreRequisites For Use w/o CHATTR
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
getwildr authored Nov 30, 2023
1 parent f6f5244 commit faf80b3
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 faf80b3

Please sign in to comment.