mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-03-17 06:12:10 +00:00
minor fix with stderr to stdout
This commit is contained in:
@@ -12,7 +12,7 @@ fix: |
|
||||
[source,bash]
|
||||
----
|
||||
/usr/bin/security authorizationdb read system.preferences > /tmp/system.preferences.plist
|
||||
key_value=$(/usr/libexec/PlistBuddy -c "Print :shared" /tmp/system.preferences.plist)
|
||||
key_value=$(/usr/libexec/PlistBuddy -c "Print :shared" /tmp/system.preferences.plist 2>&1)
|
||||
if [[ "$key_value" == *"Does Not Exist"* ]]; then
|
||||
/usr/libexec/PlistBuddy -c "Add :shared bool false" /tmp/system.preferences.plist
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user