Skip to content

Commit

Permalink
Merge pull request #5 from cgourlay/master
Browse files Browse the repository at this point in the history
Correct assignment of the environment vars
  • Loading branch information
nblumhardt authored Jul 18, 2016
2 parents 6b346dc + 2f48af7 commit 796239d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ private static string GetEnvironmentUserName()
var userDomainName = Environment.UserDomainName;
var userName = Environment.UserName;
#else
var userDomainName = Environment.GetEnvironmentVariable("USERNAME");
var userName = Environment.GetEnvironmentVariable("USERDOMAIN");
var userDomainName = Environment.GetEnvironmentVariable("USERDOMAIN");
var userName = Environment.GetEnvironmentVariable("USERNAME");
#endif
return !string.IsNullOrWhiteSpace(userDomainName) ? $@"{userDomainName}\{userName}" : userName;
}
Expand Down

0 comments on commit 796239d

Please sign in to comment.