diff --git a/scripts/firmware_picker.sh b/scripts/firmware_picker.sh index 31f871d..6fd729c 100755 --- a/scripts/firmware_picker.sh +++ b/scripts/firmware_picker.sh @@ -55,7 +55,7 @@ while true; do echo "Could not reach the device!" echo "$RESULT" - if [[ "$RESULT" =~ failed ]]; then + if [[ "$RESULT" =~ failed || -z "$RESULT" ]]; then read -p "Do you want to try something else? [y/N] " -n 1 -r echo [[ "$REPLY" =~ ^[Yy]$ ]] || break