From 228d4e91461a2f8a29374b2e9ae89904e86a5b0d Mon Sep 17 00:00:00 2001 From: alexia Date: Tue, 7 Feb 2023 03:13:31 +0100 Subject: [PATCH] dfuhelper: fail early if device rebooted to normal/recovery mode (#333) --- palera1n.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/palera1n.sh b/palera1n.sh index a85671b..8c29f37 100755 --- a/palera1n.sh +++ b/palera1n.sh @@ -42,7 +42,7 @@ remote_cp() { step() { for i in $(seq "$1" -1 0); do - if [ "$(get_device_mode)" = "dfu" ]; then + if [[ $(get_device_mode) == "dfu" || ($1 == "10" && $(get_device_mode) != "none") ]]; then break fi printf '\r\e[K\e[1;36m%s (%d)' "$2" "$i"