Skip to content

Commit ad0bd24

Browse files
human87daviwil
human87
authored andcommitted
Start-EditorServices.ps1 script: 'Test-ModuleAvailable' function does not have -RequiredVersion parameter
1 parent fb67460 commit ad0bd24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Start-EditorServices.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ if ((Test-ModuleAvailable "PowerShellGet") -eq $false) {
195195
# Check if the expected version of the PowerShell Editor Services
196196
# module is installed
197197
$parsedVersion = New-Object System.Version @($EditorServicesVersion)
198-
if ((Test-ModuleAvailable "PowerShellEditorServices" -RequiredVersion $parsedVersion) -eq $false) {
198+
if ((Test-ModuleAvailable "PowerShellEditorServices" $parsedVersion) -eq $false) {
199199
if ($ConfirmInstall -and $isPS5orLater) {
200200
# TODO: Check for error and return failure if necessary
201201
Install-Module "PowerShellEditorServices" -RequiredVersion $parsedVersion -Confirm

0 commit comments

Comments
 (0)