Fix Install-PSPackage fallback
This commit is contained in:
parent
9e30788903
commit
092944b039
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ Function Install-PSPackage() {
|
|||
Add-ToProfile $current_profile "$package-search" "Import-Module $module_path"
|
||||
|
||||
if($null -eq (Get-Command $cmdlet -ErrorAction SilentlyContinue)) {
|
||||
Install-Module -Name $cmdlet -Force
|
||||
Install-Module -Name $package -Force
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue