Skip to content

Commit 82ee208

Browse files
[release/6.0] Fix line endings for SPA proxy script on MacOS (#41821)
* Fix line endings for SPA proxy script on MacOS * Update SpaProxyLaunchManager.cs
1 parent e51948e commit 82ee208

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Middleware/Spa/SpaProxy/src/SpaProxyLaunchManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ private void LaunchStopScriptMacOS(int spaProcessId)
251251
{
252252
var fileName = Guid.NewGuid().ToString("N") + ".sh";
253253
var scriptPath = Path.Combine(AppContext.BaseDirectory, fileName);
254-
var stopScript = @$"function list_child_processes(){{
254+
var stopScript = @$"function list_child_processes () {{
255255
local ppid=$1;
256256
local current_children=$(pgrep -P $ppid);
257257
local local_child;
@@ -282,7 +282,7 @@ private void LaunchStopScriptMacOS(int spaProcessId)
282282
done;
283283
rm {scriptPath};
284284
";
285-
File.WriteAllText(scriptPath, stopScript);
285+
File.WriteAllText(scriptPath, stopScript.ReplaceLineEndings());
286286

287287
var stopScriptInfo = new ProcessStartInfo("/bin/bash", scriptPath)
288288
{

0 commit comments

Comments
 (0)