mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 16:36:20 +08:00
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:
1 parent
3602a8b828
commit
2b40a19704
1 file changed
+1
-1
Notes:
git
2026-10-14 23:01:09 +00:00
+1
-1
@@ -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)
|
||||
Reference in new issue
Block a user