mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
This reverts commit 23f9a0d655c4d405bb2397a147a1523436205486, "win32: Strip CR from batch files", and add CR to the other batch files too. `cmd.exe` seems to work well with LF at a glance, but sometimes `goto` jumps to an unexpected line. This is probably because it is looking for the beginning of a line, assuming that all lines end with CRLF, and as a result mistaking the `goto` operand for a label.
4 lines
132 B
Batchfile
Executable File
4 lines
132 B
Batchfile
Executable File
@echo off
|
|
@setlocal EnableExtensions DisableDelayedExpansion || exit /b -1
|
|
for %%I in (%*) do if not exist "%%~I/." mkdir "%%~I"
|