CIS-Script
CIS-Script copied to clipboard
setopt command not found; line 524 syntax error
When running the Assemble.sh I get:
Assemble.sh: line 48: setopt: command not found
Then when I run CISBenchmarkScript.sh I get:
*** Security report started - Thu Sep 29 16:21:34 UTC 2022
*** Current version - macOS Monterey 12.6 (21G115)
OrgScore 1.1 Ensure All Apple-provided Software Is Current (Automated)
OrgScore 1.2 Ensure Auto Update Is Enabled (Automated)
OrgScore 1.3 Ensure Download New Updates When Available is Enabled (Automated)
OrgScore 1.4 Ensure Installation of App Update Is Enabled (Automated)
OrgScore 1.5 Ensure System Data Files and Security Updates Are Downloaded Automatically Is Enabled (Automated)
OrgScore 1.6 Ensure Install of macOS Updates Is Enabled (Automated)
OrgScore 2.10 Ensure Secure Keyboard Entry terminal.app is Enabled (Automated)
OrgScore 2.11 Ensure EFI Version Is Valid and Checked Regularly (Automated)
CISBenchmarkScript.sh: line 524: syntax error near unexpected token `then'
CISBenchmarkScript.sh: line 524: ` if [[ "$t2Check" == "1" ]] then'