mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-04-02 17:32:09 +00:00
parent
18a7f17a0b
commit
ef97a8da24
@ -56,7 +56,7 @@ function Test-WinUtilPackageManager {
|
|||||||
# Check if Winget's Version is too old.
|
# Check if Winget's Version is too old.
|
||||||
$wingetCurrentVersion = [System.Version]::Parse($wingetVersion.Trim('v'))
|
$wingetCurrentVersion = [System.Version]::Parse($wingetVersion.Trim('v'))
|
||||||
# Grabs the latest release of Winget from the Github API for version check process.
|
# Grabs the latest release of Winget from the Github API for version check process.
|
||||||
$response = winget search -e Microsoft.AppInstaller
|
$response = winget search -e Microsoft.AppInstaller --accept-source-agreements
|
||||||
$wingetLatestVersion = ($response | Select-String -Pattern '\d+\.\d+\.\d+\.\d+').Matches.Value
|
$wingetLatestVersion = ($response | Select-String -Pattern '\d+\.\d+\.\d+\.\d+').Matches.Value
|
||||||
Write-Host "Latest Search Version: $wingetLatestVersion" -ForegroundColor White
|
Write-Host "Latest Search Version: $wingetLatestVersion" -ForegroundColor White
|
||||||
Write-Host "Current Installed Version: $wingetCurrentVersion" -ForegroundColor White
|
Write-Host "Current Installed Version: $wingetCurrentVersion" -ForegroundColor White
|
||||||
|
Loading…
Reference in New Issue
Block a user