mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 14:10:51 +10:00
Fix return code error
This commit is contained in:
@@ -237,7 +237,7 @@ class PatchSysVolume:
|
|||||||
input("Press [ENTER] to continue with kernel and dyld cache merging")
|
input("Press [ENTER] to continue with kernel and dyld cache merging")
|
||||||
if self.constants.detected_os > self.constants.catalina:
|
if self.constants.detected_os > self.constants.catalina:
|
||||||
print("- Creating new APFS snapshot")
|
print("- Creating new APFS snapshot")
|
||||||
bless = utilities.elevated(["bless", "--folder", f"{self.mount_location}/System/Library/CoreServices", "--bootefi", "--create-snapshot"], stdout=subprocess.PIPE).stdout.decode().strip().encode()
|
bless = utilities.elevated(["bless", "--folder", f"{self.mount_location}/System/Library/CoreServices", "--bootefi", "--create-snapshot"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||||
if bless.returncode != 0:
|
if bless.returncode != 0:
|
||||||
print("- Unable to create new snapshot")
|
print("- Unable to create new snapshot")
|
||||||
print("Reason for snapshot failure:")
|
print("Reason for snapshot failure:")
|
||||||
|
|||||||
Reference in New Issue
Block a user