Skip to content
代码片段 群组 项目
未验证 提交 82ee2086 编辑于 作者: Mackinnon Buck's avatar Mackinnon Buck 提交者: GitHub
浏览文件

[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
上级 e51948e4
No related branches found
No related tags found
无相关合并请求
......@@ -251,7 +251,7 @@ catch
{
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;
......@@ -282,7 +282,7 @@ do
done;
rm {scriptPath};
";
File.WriteAllText(scriptPath, stopScript);
File.WriteAllText(scriptPath, stopScript.ReplaceLineEndings());
var stopScriptInfo = new ProcessStartInfo("/bin/bash", scriptPath)
{
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册