From e5633173e2092c4211e0b551d5bb81f73f8cd1d2 Mon Sep 17 00:00:00 2001 From: LukeZGD Date: Sun, 27 Jun 2021 16:20:23 +0800 Subject: [PATCH] Update device.sh --- resources/device.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/device.sh b/resources/device.sh index 088e5fa..30062b7 100755 --- a/resources/device.sh +++ b/resources/device.sh @@ -142,10 +142,10 @@ CheckM8() { Selection=("iPwnder32" "ipwndfu") Input "Select pwnDFU tool to use (Select 1 if unsure):" select opt in "${Selection[@]}"; do - case $opt in - "ipwndfu" ) pwnDFUTool="ipwndfu"; break;; - *) pwnDFUTool="iPwnder32"; break;; - esac + case $opt in + "ipwndfu" ) pwnDFUTool="ipwndfu"; break;; + *) pwnDFUTool="iPwnder32"; break;; + esac done else pwnDFUTool="ipwndfu" @@ -172,7 +172,7 @@ CheckM8() { if [[ $pwnDFUDevice != 0 ]]; then echo -e "\n${Color_R}[Error] Failed to enter pwnDFU mode. Please run the script again: ./restore.sh Downgrade ${Color_N}" echo "${Color_Y}* This step may fail a lot, especially on Linux, and unfortunately there is nothing I can do about the low success rates. ${Color_N}" - echo "${Color_Y}* The only option is to make sure you are using an Intel device, and to try multiple times ${Color_N}" + echo "${Color_Y}* The only option is to make sure you are using an Intel or M1 device, and to try multiple times ${Color_N}" Echo "* For more details, read the \"Other Notes\" section of the README" exit 1 elif [[ $pwnDFUDevice == 0 ]]; then