Fix return code error

This commit is contained in:
Mykola Grymalyuk
2021-10-08 15:02:25 -06:00
parent 68d13775d9
commit 12998bc7e1

View File

@@ -237,7 +237,7 @@ class PatchSysVolume:
input("Press [ENTER] to continue with kernel and dyld cache merging")
if self.constants.detected_os > self.constants.catalina:
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:
print("- Unable to create new snapshot")
print("Reason for snapshot failure:")