diff options
author | Mackinnon Buck <mackinnon.buck@gmail.com> | 2022-05-23 23:59:13 +0300 |
---|---|---|
committer | Mackinnon Buck <mackinnon.buck@gmail.com> | 2022-05-23 23:59:13 +0300 |
commit | 29cabf49a907e4060e0abcf532381b5f5861823a (patch) | |
tree | ff5902fc8a48057ba7244344f12f451aa660156a | |
parent | b02aab89920c0a646a177b0c61d9637eb4e7ec61 (diff) |
Fix line endings for SPA proxy script on MacOSmbuck/fix-spa-proxy-bash-script
-rw-r--r-- | src/Middleware/Spa/SpaProxy/src/SpaProxyLaunchManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Middleware/Spa/SpaProxy/src/SpaProxyLaunchManager.cs b/src/Middleware/Spa/SpaProxy/src/SpaProxyLaunchManager.cs index 7b5ceed1bb..9b736cb832 100644 --- a/src/Middleware/Spa/SpaProxy/src/SpaProxyLaunchManager.cs +++ b/src/Middleware/Spa/SpaProxy/src/SpaProxyLaunchManager.cs @@ -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) { |