From ead0411e5cfa64632331ac513ad161423ff5d756 Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Sat, 12 Oct 2024 08:19:42 +0300 Subject: [PATCH] Update ms-spotify-check.ps1 - fixed lastResponse output - increase in attempts and delays --- ms-spotify-check.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ms-spotify-check.ps1 b/ms-spotify-check.ps1 index 9007685..a3d2fc2 100644 --- a/ms-spotify-check.ps1 +++ b/ms-spotify-check.ps1 @@ -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 } }