win32: Let makedirs.bat tolerate concurrent creation

With parallel make, another job can create the same directory between the existence check and mkdir.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hiroshi SHIBATAandClaude Opus 5.5 committed 2026-10-15 08:00:21 +09:00
1 parent 3602a8b828
commit 2b40a19704
1 file changed
+1 -1
Notes: git 2026-10-14 23:01:09 +00:00
+1 -1
View File
@@ -1,3 +1,3 @@
@echo off
@setlocal EnableExtensions DisableDelayedExpansion || exit /b -1
for %%I in (%*) do if not exist "%%~I/." mkdir "%%~I"
for %%I in (%*) do if not exist "%%~I/." (mkdir "%%~I" 2> nul || if not exist "%%~I/." exit /b 1)