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:
Qi Wang 2024-08-23 19:28:46 +00:00
Родитель c558c543fd
Коммит 738d6827c7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);