File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Middleware/Spa/SpaProxy/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ private void LaunchStopScriptMacOS(int spaProcessId)
251
251
{
252
252
var fileName = Guid . NewGuid ( ) . ToString ( "N" ) + ".sh" ;
253
253
var scriptPath = Path . Combine ( AppContext . BaseDirectory , fileName ) ;
254
- var stopScript = @$ "function list_child_processes() {{
254
+ var stopScript = @$ "function list_child_processes () {{
255
255
local ppid=$1;
256
256
local current_children=$(pgrep -P $ppid);
257
257
local local_child;
@@ -282,7 +282,7 @@ private void LaunchStopScriptMacOS(int spaProcessId)
282
282
done;
283
283
rm { scriptPath } ;
284
284
" ;
285
- File . WriteAllText ( scriptPath , stopScript ) ;
285
+ File . WriteAllText ( scriptPath , stopScript . ReplaceLineEndings ( ) ) ;
286
286
287
287
var stopScriptInfo = new ProcessStartInfo ( "/bin/bash" , scriptPath )
288
288
{
You can’t perform that action at this time.
0 commit comments