File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ public bool TryExecute(string commandLine, ShellContext context)
101101 var cmdName = parts [ 0 ] ;
102102 var args = parts . Skip ( 1 ) . ToArray ( ) ;
103103
104- if ( cmdName . StartsWith ( "./" ) || cmdName . StartsWith ( "/" ) || cmdName . Contains ( "/" ) )
104+ if ( cmdName . StartsWith ( "./" ) )
105105 {
106106 try
107107 {
@@ -111,9 +111,9 @@ public bool TryExecute(string commandLine, ShellContext context)
111111 {
112112 FileName = "/bin/bash" ,
113113 Arguments = $ "-c \" { commandLine } \" ",
114- RedirectStandardOutput = true ,
115- RedirectStandardError = true ,
116- RedirectStandardInput = true ,
114+ RedirectStandardOutput = false ,
115+ RedirectStandardError = false ,
116+ RedirectStandardInput = false ,
117117 UseShellExecute = false ,
118118 CreateNoWindow = true
119119 }
@@ -138,7 +138,7 @@ public bool TryExecute(string commandLine, ShellContext context)
138138 }
139139 catch ( Exception ex )
140140 {
141- Console . WriteLine ( $ "[[[red]-[/]]] - Error executing file: { ex . Message } ") ;
141+ AnsiConsole . MarkupLine ( $ "[[[red]-[/]]] - Error executing file: { ex . Message } ") ;
142142 return true ;
143143 }
144144 }
You can’t perform that action at this time.
0 commit comments