git: use CRLF separators for .bat callback script

Does not seem to affect this very case, but still the safer option.

GitOrigin-RevId: acf5a13aca8bef2240e252a87eb2bc07f14a9aec
This commit is contained in:
Aleksey Pivovarov
2024-09-16 11:47:30 +02:00
committed by intellij-monorepo-bot
parent a3032f71f6
commit b3de592f6d

View File

@@ -16,7 +16,7 @@ public final class ScriptGeneratorUtil {
@NotNull
private static File createBatchScript(@NotNull @NonNls String fileName, @NotNull @NonNls String commandLine) throws IOException {
String batchScriptText = "@echo off" + "\n" + commandLine + " %*\n";
String batchScriptText = "@echo off" + "\r\n" + commandLine + " %*\r\n";
return createTempExecutable(fileName + ".bat", batchScriptText);
}