From 092944b039698d154463a6a52280f26895523a74 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 27 Dec 2021 19:53:04 +0530 Subject: [PATCH] Fix Install-PSPackage fallback --- src/scripts/win32.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index 7e53794a..1cd59f60 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -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 } }