We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c478ed commit ac9b038Copy full SHA for ac9b038
1 file changed
src/UniGetUI.PackageEngine.Managers.Vcpkg/Vcpkg.cs
@@ -437,11 +437,11 @@ public static Tuple<bool, string> GetVcpkgRoot()
437
var (found, paths) = CoreTools.WhichMultiple("vcpkg");
438
foreach (string path in paths)
439
{
440
- path = Path.GetDirectoryName(path);
+ string dir = Path.GetDirectoryName(path);
441
// Make sure the root is a valid root not just a random directory
442
- if (found && Path.Exists($"{path}\\triplets"))
+ if (found && Path.Exists($"{dir}\\triplets"))
443
444
- vcpkgRoot = path;
+ vcpkgRoot = dir;
445
break;
446
}
447
0 commit comments