From a9cc95f110e37bb338590fc2417288d682c468ab Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Sun, 6 Oct 2024 18:28:17 +0300 Subject: [PATCH] removed duplicate log --- ms-spotify-check.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ms-spotify-check.ps1 b/ms-spotify-check.ps1 index 9e55ddc..d4b878c 100644 --- a/ms-spotify-check.ps1 +++ b/ms-spotify-check.ps1 @@ -141,11 +141,9 @@ function Compare-SpotifyVersions { $jsonContent = Invoke-WebRequest -Uri $jsonUrl | ConvertFrom-Json foreach ($jsonVersion in $jsonContent.PSObject.Properties) { if ($jsonVersion.Value.fullversion -eq $version) { - Write-Log "New version not found" return $true } } - Write-Log "New version found" return $false } catch { @@ -220,6 +218,7 @@ function Main { switch ($versionExists) { $false { + Write-Log "New version found" Trigger-GitAction -v $version -s "[Microsoft Store](https://apps.microsoft.com/detail/9ncbcszsjrsb)" Write-Log "Sent for search and processing in GAS" }