Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62cfaebf authored by vince-bourgmayer's avatar vince-bourgmayer
Browse files

update wait-reboot.bat. Tested and validated

parent f52e80e1
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -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" )