From 1ba89de8f7c7fd2dbab93c951c61c239793023e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edwin=20Nu=C3=B1ez?= <122418602+edwin170@users.noreply.github.com> Date: Tue, 15 Aug 2023 18:14:13 -0400 Subject: [PATCH] Update downr1n.sh --- downr1n.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/downr1n.sh b/downr1n.sh index 5791956..6fb15f0 100755 --- a/downr1n.sh +++ b/downr1n.sh @@ -829,10 +829,10 @@ if [ true ]; then "$dir"/pzb -g "$(awk "/""${model}""/{x=1}x&&/DeviceTree[.]/{print;exit}" BuildManifest.plist | grep '' |cut -d\> -f2 |cut -d\< -f1)" "$ipswurl" "$dir"/pzb -g "$(awk "/""${model}""/{x=1}x&&/kernelcache.release/{print;exit}" BuildManifest.plist | grep '' |cut -d\> -f2 |cut -d\< -f1)" "$ipswurl" - if [ "$os" = "Darwin" ]; then - "$dir"/img4 -i "$extractedIpsw"/Firmware/"$(/usr/bin/plutil -extract "BuildIdentities".0."Manifest"."OS"."Info"."Path" xml1 -o - work/BuildManifest.plist | grep '' |cut -d\> -f2 |cut -d\< -f1 | head -1)".trustcache -o work/trustcache.img4 -M work/IM4M + if [ "$os" = 'Darwin' ]; then + "$dir"/pzb -g Firmware/"$(/usr/bin/plutil -extract "BuildIdentities".0."Manifest"."RestoreRamDisk"."Info"."Path" xml1 -o - BuildManifest.plist | grep '' |cut -d\> -f2 |cut -d\< -f1 | head -1)".trustcache "$ipswurl" else - "$dir"/img4 -i "$extractedIpsw"/Firmware/"$(../binaries/Linux/PlistBuddy work/BuildManifest.plist -c "Print BuildIdentities:0:Manifest:OS:Info:Path" | sed 's/"//g')".trustcache -o work/trustcache.img4 -M work/IM4M + "$dir"/pzb -g Firmware/"$(../Linux/PlistBuddy BuildManifest.plist -c "Print BuildIdentities:0:Manifest:RestoreRamDisk:Info:Path" | sed 's/"//g')".trustcache "$ipswurl" fi cd .. else