CIS-Script
CIS-Script copied to clipboard
OrgScore 2.3.2 - Issue with code
The current code check for 2.3.2 appears to check whether the Hot Corners are managed, but not what value the corner is set to.
if [[ "${prefIsManaged}" != "6" ]] || [[ "${prefIsManaged2}" != "6" ]] || [[ "${prefIsManaged3}" != "6" ]] || [[ "${prefIsManaged4}" != "6" ]]; then
Should be replaced with
if [[ "${prefValueAsUser}" != "6" ]] || [[ "${prefValueAsUser2}" != "6" ]] || [[ "${prefValueAsUser3}" != "6" ]] || [[ "${prefValueAsUser4}" != "6" ]]; then
Correction:
if [[ "${prefValueAsUser}" != "6" ]] && [[ "${prefValueAsUser2}" != "6" ]] && [[ "${prefValueAsUser3}" != "6" ]] && [[ "${prefValueAsUser4}" != "6" ]]; then
sorry for the late answer, but isn't it the case that one setting needs to be set? not all?
try to understand why the and (&&
) instead of or (||
)?