mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-19 13:46:05 +10:00
utilites.py: Fix array index
This commit is contained in:
@@ -437,7 +437,7 @@ def clean_device_path(device_path: str):
|
||||
if len(device_path_array) >= 2:
|
||||
device_path_stripped = device_path_array[-2]
|
||||
device_path_root_array = device_path_stripped.split(",")
|
||||
if len(device_path_root_array) >= 2:
|
||||
if len(device_path_root_array) > 2:
|
||||
return device_path_root_array[2]
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user