Skip to content

Commit 1d539fb

Browse files
committed
Make the dependency version the minimum inclusive version
1 parent 88c254c commit 1d539fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/scripts/install-aishell.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ function Install-AIShellModule {
216216
$psrlModule = Get-Module -Name PSReadLine
217217
$psrlVer = $psrldep.Contains('-') ? $psrldep.Split('-')[0] : $psrldep
218218
if ($null -eq $psrlModule -or $psrlModule.Version -lt [version]$psrlVer) {
219-
Write-Host " - This version of AIShell module depends on PSReadLine '$psrldep', which is missing."
220-
Write-Host " Installing the PowerShell module 'PSReadLine' $psrldep ..."
221-
Install-PSResource -Name PSReadLine -Repository PSGallery -Prerelease -TrustRepository -Version $psrldep -ErrorAction Stop -WarningAction SilentlyContinue
219+
Write-Host " - This version of AIShell module depends on PSReadLine '$psrldep' or higher, which is missing."
220+
Write-Host " Installing the PowerShell module 'PSReadLine' $psrldep or a higher version ..."
221+
Install-PSResource -Name PSReadLine -Repository PSGallery -Prerelease -TrustRepository -Version "[$psrldep, ]" -ErrorAction Stop -WarningAction SilentlyContinue
222222
$Script:NewPSRLInstalled = $true
223223
}
224224
}

0 commit comments

Comments
 (0)