mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 05:53:24 +00:00
Space missing in $CURRENT_USER code in adoc files #139
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 @cl2solutions on GitHub.
For CIS ID os_show_filename_extensions_enable: I believe there is a space missing in the CURRENT_USER variable. This is displayed only in the adoc/guidance files. Compliance scripts aren't affected.
Currently:
CURRENT_USER=$( /usr/sbin/scutil <<< "show State:/Users/ConsoleUser" \| /usr/bin/awk '/Name :/ && ! /loginwindow/ { print $3 }' )Should be:
CURRENT_USER=$( /usr/sbin/scutil <<< "show State:/Users/ConsoleUser" \ | /usr/bin/awk '/Name :/ && ! /loginwindow/ { print $3 }' )Focused:
currently:
...ConsoleUser" \| /usr/bin/awk...should be:
...ConsoleUser" \ | /usr/bin/awk...Device Info:
2021 14-inch MacBook Pro (M1 Pro)
macOS Sonoma 14.1 (23B74)