Add a verbose mode #43
No reviewers
Labels
No labels
bug
bullseye
discussion
duplicate
enhancement
help wanted
invalid
question
suggestion
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: evolix/evocheck#43
Loading…
Reference in a new issue
No description provided.
Delete branch "verbose-mode"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add a verbose function for print detailed output when VERBOSE=1 is set in /etc/evocheck.sh or command line.
Check need to be adapted for use it, IS_TUNE2FS_M5 and IS_OLD_HOME_DIR have been adapted for this PR.
There is an odd return line. Can we manage to fix that?
@ -841,3 +845,3 @@
if [ "$IS_OLD_HOME_DIR" = 1 ]; then
for dir in /home/*; do
stat -c "%n has owner %u resolved as %U" "$dir" | grep -v .bak | grep -q UNKNOWN
stat -c "%n has owner %u resolved as %U" "$dir" | grep -v .bak | grep UNKNOWN | verbose
Nice but displays the verbose message before
IS_OLD_HOME_DIR FAILED!
.I just fix the odd return line.
I rewrite the IS_OLD_HOME_DIR check with find command.
That simplify the check and fix output order in verbose mode.
LGTM