mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 05:53:24 +00:00
Stats Reporting Incorrect #241
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Originally created by @mzaske3 on GitHub.
Summary
Generate_Stats and Generate_Report functions are reporting compliant/non-compliant counts incorrectly.
Steps to reproduce
Operating System version
macOS Big Sur (11.1)
What is the current bug behavior?
Output of stats displays: Passed: {non-compliant count} Failed: {NULL}, {NULL} percent compliant!
The values of {NULL} are not actually present, it just shows blank.
What is the expected correct behavior?
Output of stats displays: Passed: {compliant count} Failed: {non-compliant count} , {percentage_compliant} percent compliant!
Relevant logs and/or screenshots
N/A
Output of checks
N/A
Possible fixes
Lines 719-720, 723
Lines 744-745, 748
@mzaske3 commented on GitHub:
Please disregard - I was testing using the wrong shell (bash instead of Zsh).