File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
Push-Location $PSScriptRoot
2
+
3
+ # Some people only have a really old version of PowerShellGet that doesn't support pre-release modules
4
+ if (! (Get-Command Install-Module - ParameterName ' AllowPrerelease' - ErrorAction ' SilentlyContinue' )) {
5
+ $Module = Install-Module ' PowerShellGet' - Repository ' PSGallery' - MaximumVersion 2.99 - MinimumVersion 2.2 .5 - Force - Scope CurrentUser - PassThru
6
+ Remove-Module PowerShellGet
7
+ Import-Module PowerShellGet - MinimumVersion $Module.Version - Force
8
+ }
9
+
2
10
try {
3
- Install-Script Install-RequiredModule
4
- Install-RequiredModule
11
+ $Script = Install-Script Install-RequiredModule - PassThru - Force
12
+ & ( Join-Path $Script .InstalledLocation Install-RequiredModule.ps1 )
5
13
} finally {
6
14
Pop-Location
7
15
}
You can’t perform that action at this time.
0 commit comments