mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-22 10:17:01 +02:00
dfuhelper: fail early if device rebooted to normal/recovery mode (#333)
This commit is contained in:
1 parent
cd529b6216
commit
228d4e9146
1 file changed
+1
-1
+1
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user