We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0e9caa1 + b40e534 commit 10d2b62Copy full SHA for 10d2b62
mlcustomize/firstboot.ml
@@ -305,13 +305,19 @@ if not exist \"%%scripts_done%%\" (
305
:: Pick the next script to run.
306
for %%%%f in (\"%%scripts%%\"\\*.bat) do (
307
echo running \"%%%%f\"
308
- move \"%%%%f\" \"%%scripts_done%%\"
309
- pushd \"%%scripts_done%%\"
+ pushd \"%%scripts%%\"
310
call \"%%%%~nf\"
311
set elvl=!errorlevel!
312
echo .... exit code !elvl!
313
popd
314
+ if !elvl! NEQ 249 (
315
+ echo Script succeeded, moving to scripts-done
316
+ move \"%%%%f\" \"%%scripts_done%%\"
317
+ ) else (
318
+ echo Script failed, will retry on next boot
319
+ )
320
+
321
:: Reboot the computer. This is necessary to free any locked
322
:: files which may prevent later scripts from running.
323
shutdown /r /t 0 /y
0 commit comments