bug in 06 script. fixed

This commit is contained in:
Michael H.G. Schmidt 2022-06-08 19:58:48 +02:00
parent faa15745d2
commit 593e82ecac

View File

@ -76,22 +76,22 @@ tools\searchreplace %USBDRIVE%\autounattend.xml ___MYNAME___ "%MYNAME%"
tools\searchreplace %USBDRIVE%\autounattend.xml ___MYPASS___ "%MYPASS%" tools\searchreplace %USBDRIVE%\autounattend.xml ___MYPASS___ "%MYPASS%"
tools\searchreplace %USBDRIVE%\autounattend.xml ___MYLANG___ "%LANG%" tools\searchreplace %USBDRIVE%\autounattend.xml ___MYLANG___ "%LANG%"
echo. if EXIST %SOURCES%\%BOOT% (
echo copying [ %BOOT% ] to drive %USBDRIVE% ... echo.
robocopy %SOURCES% %USBDRIVE%\sources %BOOT% /J /NJH echo copying [ %BOOT% ] to drive %USBDRIVE% ...
robocopy %SOURCES% %USBDRIVE%\sources %BOOT% /J /NJH
) else (
echo DOH! no %BOOT% in [ %SOURCES% ] found
exit /b
)
if EXIST %SOURCES%\%IMAGE% ( if EXIST %SOURCES%\%IMAGE% (
echo. echo.
echo copying [ %IMAGE% ] to drive %USBDRIVE% ... echo copying [ %IMAGE% ] to drive %USBDRIVE% ...
robocopy %SOURCES% %USBDRIVE%\sources %IMAGE% /J /NJH robocopy %SOURCES% %USBDRIVE%\sources %IMAGE% /J /NJH
) else ( ) else (
rem echo.
echo DOH! no %IMAGE% in [ %SOURCES% ] found echo DOH! no %IMAGE% in [ %SOURCES% ] found
exit /b exit /b
) )
:CONT :CONT