Skip to content

Commit ac9b038

Browse files
authored
Update Vcpkg.cs
1 parent 2c478ed commit ac9b038

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • src/UniGetUI.PackageEngine.Managers.Vcpkg

src/UniGetUI.PackageEngine.Managers.Vcpkg/Vcpkg.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,11 +437,11 @@ public static Tuple<bool, string> GetVcpkgRoot()
437437
var (found, paths) = CoreTools.WhichMultiple("vcpkg");
438438
foreach (string path in paths)
439439
{
440-
path = Path.GetDirectoryName(path);
440+
string dir = Path.GetDirectoryName(path);
441441
// Make sure the root is a valid root not just a random directory
442-
if (found && Path.Exists($"{path}\\triplets"))
442+
if (found && Path.Exists($"{dir}\\triplets"))
443443
{
444-
vcpkgRoot = path;
444+
vcpkgRoot = dir;
445445
break;
446446
}
447447
}

0 commit comments

Comments
 (0)