Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Middleware/Spa/SpaProxy/src/SpaProxyLaunchManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ private void LaunchStopScriptMacOS(int spaProcessId)
{
var fileName = Guid.NewGuid().ToString("N") + ".sh";
var scriptPath = Path.Combine(AppContext.BaseDirectory, fileName);
var stopScript = @$"function list_child_processes(){{
var stopScript = @$"function list_child_processes () {{
local ppid=$1;
local current_children=$(pgrep -P $ppid);
local local_child;
Expand Down Expand Up @@ -282,7 +282,7 @@ private void LaunchStopScriptMacOS(int spaProcessId)
done;
rm {scriptPath};
";
File.WriteAllText(scriptPath, stopScript);
File.WriteAllText(scriptPath, stopScript.ReplaceLineEndings());

var stopScriptInfo = new ProcessStartInfo("/bin/bash", scriptPath)
{
Expand Down