Commit 202243d5 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MTR : improve detection of handles.exe on Windows.

Depending on version, "handle.exe -?" can output either "Handle v4.0"
or "Nthandle v4.1"
parent 9de2e60d
......@@ -32,8 +32,8 @@ if (IS_WINDOWS){
my $list= `handle.exe -? -accepteula 2>&1`;
foreach my $line (split('\n', $list))
{
$handle_exe= "$1.$2"
if ($line =~ /Handle v([0-9]*)\.([0-9]*)/);
$handle_exe= "$2.$3"
if ($line =~ /(Nth|H)andle v([0-9]*)\.([0-9]*)/);
}
if ($handle_exe){
print "Found handle.exe version $handle_exe\n";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment