Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMackinnon Buck <mackinnon.buck@gmail.com>2022-05-23 23:59:13 +0300
committerMackinnon Buck <mackinnon.buck@gmail.com>2022-05-23 23:59:13 +0300
commit29cabf49a907e4060e0abcf532381b5f5861823a (patch)
treeff5902fc8a48057ba7244344f12f451aa660156a
parentb02aab89920c0a646a177b0c61d9637eb4e7ec61 (diff)
Fix line endings for SPA proxy script on MacOSmbuck/fix-spa-proxy-bash-script
-rw-r--r--src/Middleware/Spa/SpaProxy/src/SpaProxyLaunchManager.cs4
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)
{