Fix Install-PSPackage fallback

This commit is contained in:
Shivam Mathur 2021-12-27 19:53:04 +05:30
parent 9e30788903
commit 092944b039
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -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
}
}