Loading windows/wait-reboot.bat +6 −5 Original line number Diff line number Diff line Loading @@ -28,15 +28,16 @@ set "DEVICE_ID=%1" if not defined %DEVICE_ID ( exit /b 10) :device_in_recovery adb devices | findstr recovery | findstr %DEVICE_ID% 2>&1 >nul if not call :device_in_recovery ( exit /b 101 ) adb devices | findstr recovery | findstr %DEVICE_ID% > nul if %errorlevel==1 ( exit /b 101 ) :while_loop if call :device_in_recovery ( adb devices | findstr recovery | findstr %DEVICE_ID% > nul echo %errorLevel% if not errorlevel 1 ( timeout 1 >nul goto :while_loop ) ) else ( echo "device nod in recovery anymore" ) Loading
windows/wait-reboot.bat +6 −5 Original line number Diff line number Diff line Loading @@ -28,15 +28,16 @@ set "DEVICE_ID=%1" if not defined %DEVICE_ID ( exit /b 10) :device_in_recovery adb devices | findstr recovery | findstr %DEVICE_ID% 2>&1 >nul if not call :device_in_recovery ( exit /b 101 ) adb devices | findstr recovery | findstr %DEVICE_ID% > nul if %errorlevel==1 ( exit /b 101 ) :while_loop if call :device_in_recovery ( adb devices | findstr recovery | findstr %DEVICE_ID% > nul echo %errorLevel% if not errorlevel 1 ( timeout 1 >nul goto :while_loop ) ) else ( echo "device nod in recovery anymore" )