From f54c50e2a8b14018d1d0d5d429e920623b024f1a Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Thu, 12 Oct 2023 19:54:16 +0800 Subject: [PATCH] Show "install libusb" message --- restore.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/restore.sh b/restore.sh index 3268829..2ce681e 100755 --- a/restore.sh +++ b/restore.sh @@ -1275,7 +1275,7 @@ device_pwnerror() { if [[ $platform == "linux" && $device_proc != 4 ]]; then error_msg+=$'\n* Unfortunately, success rates for checkm8 are very low on Linux.' error_msg+=$'\n* Pwning using a Mac or another iOS device using iPwnder Lite are better options.' - elif [[ $platform == "macos" && $(uname -m) != "x86_64" ]]; then + elif [[ $platform == "macos" ]]; then error_msg+=$'\n* If you get the error "No backend available" in ipwndfu, install libusb in Homebrew: brew install libusb' fi error_msg+=$'\n* For more details, read the "Troubleshooting" wiki page in GitHub' @@ -1364,7 +1364,7 @@ device_ipwndfu() { if [[ $tool_pwned != 0 ]]; then popd >/dev/null local error_msg - if [[ $platform == "macos" && $(uname -m) != "x86_64" ]]; then + if [[ $platform == "macos" ]]; then error_msg+=$'\n* If you get the error "No backend available," install libusb in Homebrew: brew install libusb\n' fi error_msg+="* You might need to exit DFU and (re-)enter PWNED DFU mode before retrying."