dfuhelper: fail early if device rebooted to normal/recovery mode (#333)

This commit is contained in:
alexia authored and GitHub committed 2023-02-06 21:13:31 -05:00
1 parent cd529b6216
commit 228d4e9146
1 file changed
+1 -1
+1 -1
View File
@@ -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"