From 01b3020ff4e8ab793a469fff9854774abf419737 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Thu, 15 Mar 2018 10:19:16 -0700 Subject: [PATCH] project-fsck-status.sh: --no-full mode can generate warnings It turns out that `git rev-list --objects` can actually output warnings too. Particularly when `--reflog` is used with it. Revert the changes that removed the warning info text from the report unless `--full` was used in order for projects with warnings to be displayed correctly. Signed-off-by: Kyle J. McKay --- toolbox/reports/project-fsck-status.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/toolbox/reports/project-fsck-status.sh b/toolbox/reports/project-fsck-status.sh index d2fe078..6448ef7 100755 --- a/toolbox/reports/project-fsck-status.sh +++ b/toolbox/reports/project-fsck-status.sh @@ -261,9 +261,6 @@ warncount=0 errresults= # warnresults are non-empty results from 0 status fsck runs warnresults= -# if non-empty, warning results may be generated -haswarn=1 -[ -n "$fullcheck" ] || haswarn= # list of all projects checked in order if --list is active allprojs= @@ -328,14 +325,10 @@ Project Fsck Status Report End Time: $enddate Projects Checked: $howmany - Projects Okay: $(( $okcount + $mtcount )) (passed + ${haswarn:+warned + }empty) + Projects Okay: $(( $okcount + $mtcount )) (passed + warned + empty) Projects Passed: $(( $okcount - $warncount )) -EOT - [ -z "$haswarn" ] || cat <