Skip to content

Commit

Permalink
Load only latest available version of the module
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlbyk committed Jan 4, 2017
1 parent cf953c9 commit 0b71116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profile.example.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Import the posh-git module, first via installed posh-git module.
# If the module isn't installed, then attempt to load it from the cloned posh-git Git repo.
$poshGitModule = Get-Module posh-git -ListAvailable
$poshGitModule = Get-Module posh-git -ListAvailable | Sort-Object Version -Descending | Select-Object -First 1
if ($poshGitModule) {
$poshGitModule | Import-Module
}
Expand Down

0 comments on commit 0b71116

Please sign in to comment.