зеркало из https://github.com/microsoft/BuildXL.git
Merged PR 801751: Correct HOMEDRIVE env name in AmbienContext
Remove the extra ")" character in homedirve env name. It looks like a type. Related work items: #2192038
This commit is contained in:
Родитель
c558c543fd
Коммит
738d6827c7
|
@ -238,7 +238,7 @@ namespace BuildXL.FrontEnd.Script.Ambients
|
|||
private static EvaluationResult GetUserHomeDirectory(Context context, ModuleLiteral env, EvaluationStackFrame args)
|
||||
{
|
||||
string homePath = Host.Current.CurrentOS == BuildXL.Interop.OperatingSystem.Win
|
||||
? I($"{Environment.GetEnvironmentVariable(")HOMEDRIVE") ?? "C:"}{Path.DirectorySeparatorChar}{Environment.GetEnvironmentVariable("HOMEPATH") ?? "Users"}")
|
||||
? I($"{Environment.GetEnvironmentVariable("HOMEDRIVE") ?? "C:"}{Path.DirectorySeparatorChar}{Environment.GetEnvironmentVariable("HOMEPATH") ?? "Users"}")
|
||||
: Environment.GetEnvironmentVariable("HOME");
|
||||
|
||||
var directoryPath = AbsolutePath.Create(context.FrontEndContext.PathTable, homePath);
|
||||
|
|
Загрузка…
Ссылка в новой задаче