From 3bbc7e709d653c06b9e0c9474a80f1c716ac4ffb Mon Sep 17 00:00:00 2001 From: LukeeGD <26163116+LukeZGD@users.noreply.github.com> Date: Sun, 16 Feb 2025 17:20:52 +0800 Subject: [PATCH] Update restore.sh --- restore.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/restore.sh b/restore.sh index 01e5770..86d3f50 100755 --- a/restore.sh +++ b/restore.sh @@ -1565,7 +1565,7 @@ device_dfuhelper() { fi device_find_all $1 opt=$? - if [[ $opt == 1 ]]; then + if [[ $opt == 1 && $mode != "device_dfuhelper" ]]; then log "Found device in DFU mode." device_mode="DFU" return @@ -1610,7 +1610,7 @@ device_dfuhelper() { echo -n "$i " device_find_all $1 opt=$? - if [[ $opt == 1 ]]; then + if [[ $opt == 1 && $mode != "device_dfuhelper" ]]; then echo -e "\n$(log 'Found device in DFU mode.')" device_mode="DFU" return