Update ms-spotify-check.ps1

- fixed lastResponse output
- increase in attempts and delays
This commit is contained in:
amd64fox 2024-10-12 08:19:42 +03:00
parent b54270ecf8
commit ead0411e5c

View file

@ -102,7 +102,7 @@ function Get-LatestSpotifyVersion {
}
return $latestFile
} -MaxAttempts 3 -DelaySeconds 5
} -MaxAttempts 6 -DelaySeconds 6
if ($response) {
Write-Log "Found: $($response.FileName)"
@ -111,7 +111,7 @@ function Get-LatestSpotifyVersion {
else {
Write-Log "Failed to find matching Spotify file after multiple attempts."
Write-Log "Response:"
Write-Log $lastResponse
Write-Log $script:lastResponse
return $null
}
}