Skip to content

Commit

Permalink
Addressing PR issue
Browse files Browse the repository at this point in the history
  • Loading branch information
WardenGnaw committed May 16, 2020
1 parent 8cb291f commit 6760a4c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/MICore/LaunchOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -552,11 +552,13 @@ private static string ResolveFromPath(string command)
return candidate;
}

string exeCandidate = candidate + ".exe";

if (PlatformUtilities.IsWindows() && File.Exists(exeCandidate))
if (PlatformUtilities.IsWindows() && String.IsNullOrEmpty(Path.GetExtension(command)))
{
return exeCandidate;
string exeCandidate = candidate + ".exe";
if (File.Exists(exeCandidate))
{
return exeCandidate;
}
}
}

Expand Down

0 comments on commit 6760a4c

Please sign in to comment.