Skip to content

Commit

Permalink
run profile paths together (#1171)
Browse files Browse the repository at this point in the history
* run profile paths together

* codacy
  • Loading branch information
TylerLeonhardt committed Jan 28, 2020
1 parent 845d9dc commit 07c8ee1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1161,12 +1161,12 @@ public async Task LoadHostProfilesAsync()
if (this.profilePaths != null)
{
// Load any of the profile paths that exist
var command = new PSCommand();
foreach (var profilePath in GetLoadableProfilePaths(this.profilePaths))
{
PSCommand command = new PSCommand();
command.AddCommand(profilePath, false);
await this.ExecuteCommandAsync<object>(command, sendOutputToHost: true, sendErrorToHost: true).ConfigureAwait(false);
command.AddCommand(profilePath, false).AddStatement();
}
await ExecuteCommandAsync<object>(command, sendOutputToHost: true).ConfigureAwait(false);

// Gather the session details (particularly the prompt) after
// loading the user's profiles.
Expand Down

0 comments on commit 07c8ee1

Please sign in to comment.