mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 16:36:20 +08:00
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>
4 lines
176 B
Batchfile
Executable File
4 lines
176 B
Batchfile
Executable File
@echo off
|
|
@setlocal EnableExtensions DisableDelayedExpansion || exit /b -1
|
|
for %%I in (%*) do if not exist "%%~I/." (mkdir "%%~I" 2> nul || if not exist "%%~I/." exit /b 1)
|