Skip to content

Commit c81ffcc

Browse files
feat: Include the user environment variables path to the available pa… (#21)
1 parent 005273c commit c81ffcc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

LogicAppUnit/Hosting/WorkflowTestHost.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ private static void KillFunctionHostProcesses()
214214
/// <exception cref="Exception">Thrown when the location of the 'func' executable could not be found.</exception>
215215
private static string GetEnvPathForFunctionTools()
216216
{
217-
string enviromentPath;
217+
string environmentPath;
218218
string exeName;
219219

220220
// Handle the differences between platforms
@@ -225,11 +225,11 @@ private static string GetEnvPathForFunctionTools()
225225
}
226226
else
227227
{
228-
enviromentPath = Environment.GetEnvironmentVariable("PATH");
228+
environmentPath = Environment.GetEnvironmentVariable("PATH");
229229
exeName = "func";
230230
}
231231

232-
string exePath = enviromentPath.Split(Path.PathSeparator).Select(x => Path.Combine(x, exeName)).Where(x => File.Exists(x)).FirstOrDefault();
232+
string exePath = environmentPath.Split(Path.PathSeparator).Select(x => Path.Combine(x, exeName)).Where(x => File.Exists(x)).FirstOrDefault();
233233
if (!string.IsNullOrWhiteSpace(exePath))
234234
{
235235
Console.WriteLine($"Path for Azure Function Core tools: {exePath}");

0 commit comments

Comments
 (0)