From 10a8ab3bbfafbc1a9abf32b13096ecb6b44cf1cf Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Sun, 28 Mar 2021 00:45:34 +0100 Subject: [PATCH] bugfix --- 03_MakeAll.cmd | 5 +++++ wim/export-image.cmd | 21 +++++++++++---------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/03_MakeAll.cmd b/03_MakeAll.cmd index 1e8cf7e..6f071f2 100644 --- a/03_MakeAll.cmd +++ b/03_MakeAll.cmd @@ -28,6 +28,11 @@ for %%S in ( finish-boot.cmd export-image.cmd + IF %ERRORLEVEL% NEQ 0 ( + echo ERROR while exporting image + exit /b + ) + mount-image.cmd remove-apps.cmd remove-packages.cmd diff --git a/wim/export-image.cmd b/wim/export-image.cmd index 6e46cf7..e0878ac 100644 --- a/wim/export-image.cmd +++ b/wim/export-image.cmd @@ -5,6 +5,17 @@ set WIM=%SOURCES%\install.wim set W10PRO=%SOURCES%\w10pro.wim set STATEFILE=%SOURCES%\w10pro.txt + +if EXIST %STATEFILE% ( + + echo. + echo INFO: found %STATEFILE% + echo nothing todo. all work was already done. + echo READY. + exit /b + +) + if EXIST %ESD% ( echo. @@ -54,15 +65,5 @@ if EXIST %WIM% ( ) -if EXIST %STATEFILE% ( - - echo. - echo INFO: found %STATEFILE% - echo nothing todo. all work was already done. - echo READY. - exit /b - -) - set ERRORLEVEL=9009