Skip to content

Commit

Permalink
Improve recoveryOS detection
Browse files Browse the repository at this point in the history
  • Loading branch information
F1248 committed Aug 23, 2024
1 parent c5ae86a commit c396316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Genius/Types/OSBootMode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ enum OSBootMode {
case recovery

init?(_ osBootMode: Any?) {
if FileManager.default.fileExists(atPath: "/usr/bin/recoverydiagnose") {
if !FileManager.default.fileExists(atPath: "/System/Library/CoreServices/Finder.app") {
self = .recovery
} else {
let osBootMode: Self? =
Expand Down

0 comments on commit c396316

Please sign in to comment.