From 9fb342e62ec8204899187f10717375eec1eaeff9 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Wed, 2 Nov 2022 08:08:29 +0800 Subject: [PATCH] Fix copy commands --- resources/device.sh | 6 +++--- resources/ipsw.sh | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/resources/device.sh b/resources/device.sh index ff4f5d2..17b1221 100755 --- a/resources/device.sh +++ b/resources/device.sh @@ -243,7 +243,7 @@ EnterPwnDFU() { esac done else - Echo "* For Arch, install python2 first from AUR before using ipwndfu." + Echo "* Make sure to have python2 installed first before using ipwndfu." pwnDFUTool="ipwndfu" SaveExternal ipwndfu fi @@ -377,7 +377,7 @@ SendPwnediBSSA5() { Input "Send iBSS Option" Echo "* To send pwned iBSS using ipwndfu, select Y. (does not work on ARM Macs)" Echo "* To let futurerestore send iBSS, select N. (likely does not work)" - Echo "* For Arch, macOS 12 and newer, install python2 first before selecting ipwndfu." + Echo "* Make sure to have python2 installed first before using ipwndfu." Echo "* This option is enabled by default (Y)." read -p "$(Input 'Enable this option? (Y/n):')" SendiBSS if [[ $SendiBSS == 'N' || $SendiBSS == 'n' ]]; then @@ -529,7 +529,7 @@ Ramdisk4() { curl -L $JailbreakLink/support_files/7.1.2/Ramdisk/$file -o $file done cd .. - cp -rf ramdisk/ ../resources/ + cp -R ramdisk ../resources cd .. fi diff --git a/resources/ipsw.sh b/resources/ipsw.sh index b25f15a..988f2b8 100755 --- a/resources/ipsw.sh +++ b/resources/ipsw.sh @@ -241,9 +241,9 @@ IPSW32() { Log "Preparing custom IPSW..." cd tmp if [[ $JBDaibutsu == 1 ]]; then - cp -R ../resources/firmware/${WinBundles}JailbreakBundles/ FirmwareBundles/ + cp -R ../resources/firmware/${WinBundles}JailbreakBundles FirmwareBundles else - cp -R ../resources/firmware/${WinBundles}FirmwareBundles/ ./ + cp -R ../resources/firmware/${WinBundles}FirmwareBundles FirmwareBundles fi $ipsw ./../$IPSW.ipsw ./../$IPSWCustom.ipsw $ExtraArgs $BBUpdate $JBMemory ${JBFiles[@]} cd .. @@ -299,7 +299,7 @@ IPSW4() { cd tmp if [[ $OSVer == "7.1.2" && ! -e $IPSWCustom.ipsw ]]; then Log "Preparing custom IPSW..." - cp -rf ../resources/firmware/FirmwareBundles/ ./ + cp -R ../resources/firmware/FirmwareBundles . $ipsw ../$IPSW.ipsw ../$IPSWCustom.ipsw $JBMemory -S 50 ${JBFiles[@]} elif [[ ! -e $IPSWCustom.ipsw ]]; then echo @@ -315,8 +315,8 @@ IPSW4() { fi Log "Preparing custom IPSW with powdersn0w..." - cp -rf ../resources/firmware/powdersn0wBundles/ ./FirmwareBundles/ - cp -rf ../resources/firmware/src/ ./ + cp -R ../resources/firmware/powdersn0wBundles ./FirmwareBundles + cp -R ../resources/firmware/src . if [[ $Jailbreak == 1 && $OSVer == "6."* ]]; then JBFiles=() rm FirmwareBundles/${config}.plist @@ -389,7 +389,7 @@ IPSW4Cherry() { cd tmp Log "Preparing custom IPSW with ch3rryflower..." - cp -rf ../$cherrymac/FirmwareBundles/ ../$cherrymac/src/ ./ + cp -R ../$cherrymac/FirmwareBundles ../$cherrymac/src . unzip -j ../$IPSW.ipsw Firmware/all_flash/all_flash.${HWModel}ap.production/iBoot* mv iBoot.${HWModel}ap.RELEASE.img3 tmp/ $xpwntool tmp ibot.dec -iv $IV -k $Key @@ -434,7 +434,7 @@ IPSW4Powder() { powderdir="../resources/powdersn0w/macosx_x86_64" cd tmp - cp -rf $powderdir/FirmwareBundles/ $powderdir/src/ ./ + cp -R $powderdir/FirmwareBundles $powderdir/src . powdersn0w="$powderdir/ipsw" if [[ $platform != "macos" ]]; then