File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
HtmlCompiler.Tests/Core/Dependencies Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
using System . Diagnostics ;
2
+ using System . Runtime . InteropServices ;
2
3
using System . Text ;
3
4
using HtmlCompiler . Core . Exceptions ;
4
5
using HtmlCompiler . Core . Interfaces ;
@@ -15,7 +16,7 @@ public string ExecuteCommand(string command)
15
16
{
16
17
ProcessStartInfo processInfo = new ProcessStartInfo
17
18
{
18
- FileName = "bash" , // Verwende eine Shell (z.B. bash) zum Ausführen des Befehls
19
+ FileName = ( ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) ) ? "pwsh" : "bash" ) ,
19
20
Arguments = $ "-c \" { command } \" ",
20
21
RedirectStandardOutput = true ,
21
22
RedirectStandardError = true ,
Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ public void SetUp()
25
25
[ DataRow ( "v14.17.0" ) ]
26
26
[ DataRow ( "v18.1.9\n " ) ]
27
27
[ DataRow ( "v20.4.0\n " ) ]
28
+ [ DataRow ( "v20.9.0\n " ) ]
29
+ [ DataRow ( "v18.1.9\r \n " ) ]
30
+ [ DataRow ( "v20.4.0\r \n " ) ]
31
+ [ DataRow ( "v20.9.0\r \n " ) ]
28
32
public async Task CheckAsync_WithValidVersions_Return ( string consoleResult )
29
33
{
30
34
this . _cliManager . ExecuteCommand ( Arg . Any < string > ( ) )
You can’t perform that action at this time.
0 commit comments