os/mac/diagnostic: fix case of OpenCore check

This commit is contained in:
Eric Knibbe 2024-11-13 12:23:34 -05:00
parent a3c28153f7
commit e52943d8d6
No known key found for this signature in database
GPG Key ID: 179D9CDDDB814168

View File

@ -136,7 +136,7 @@ module OS
opencore_version = Utils.safe_popen_read("/usr/sbin/nvram", opencore_version = Utils.safe_popen_read("/usr/sbin/nvram",
"4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:opencore-version").split[1] "4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:opencore-version").split[1]
oclp_version = Utils.safe_popen_read("/usr/sbin/nvram", oclp_version = Utils.safe_popen_read("/usr/sbin/nvram",
"4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:oclp-version").split[1] "4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:OCLP-Version").split[1]
return if opencore_version.blank? || oclp_version.blank? return if opencore_version.blank? || oclp_version.blank?
rescue ErrorDuringExecution rescue ErrorDuringExecution
return return