Просмотр исходного кода

Update firmware flash bat to ask for redo on failed builds.

Cody Tolene 2 лет назад
Родитель
Сommit
8f09dcad61
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      firmware-flash.bat

+ 7 - 1
firware-flash.bat → firmware-flash.bat

@@ -165,7 +165,13 @@ if %ERRORLEVEL% EQU 0 (
     echo Firmware compiled successfully.
     type nul > %COMPILE_FLAG%
 ) else (
-    echo Firmware failed to compile. Please see the error log and try again.
+    echo.
+    set /p TRY_COMPILE_AGAIN="Firmware failed to compile. Please see the error log above. Try again? (Y/N): "
+    echo.
+    if /i "!TRY_COMPILE_AGAIN!"=="Y" (
+        goto :compileFirmware
+    )
+    pause
     exit /b
 )