Skip to content

Commit d02ed40

Browse files
committed
Don't rely on the Install-Script being on Env:PATH
1 parent 8c32254 commit d02ed40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Install-RequiredModule.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Push-Location $PSScriptRoot
22
try {
3-
Install-Script Install-RequiredModule
4-
Install-RequiredModule
3+
$Script = Install-Script Install-RequiredModule -PassThru -Force
4+
& (Join-Path $Script.InstalledLocation Install-RequiredModule.ps1)
55
} finally {
66
Pop-Location
77
}

0 commit comments

Comments
 (0)