Fix double quotes in 'pathext' environment variable.
This commit is contained in:
parent
684d9b1d89
commit
82a81cae8d
1 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,9 @@ namespace Microsoft.DotNet.Cli.Utils
|
|||
{
|
||||
|
||||
_executableExtensions = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
|
||||
? Environment.GetEnvironmentVariable("PATHEXT").Split(';').Select(e => e.ToLower())
|
||||
? Environment.GetEnvironmentVariable("PATHEXT")
|
||||
.Split(';')
|
||||
.Select(e => e.ToLower().Trim('"'))
|
||||
: new [] { string.Empty };
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue