From 7733481e73c53b01db4fbde75f94070d36ad1312 Mon Sep 17 00:00:00 2001 From: romanitho <96626929+Romanitho@users.noreply.github.com> Date: Wed, 6 Dec 2023 16:23:20 +0100 Subject: [PATCH] Small fix for install counter --- Winget-AutoUpdate-Install.ps1 | 2 +- Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Winget-AutoUpdate-Install.ps1 b/Winget-AutoUpdate-Install.ps1 index accd0e9..431ee27 100644 --- a/Winget-AutoUpdate-Install.ps1 +++ b/Winget-AutoUpdate-Install.ps1 @@ -339,7 +339,7 @@ function Install-WingetAutoUpdate { } #Add 1 to counter file - Invoke-RestMethod -Uri "https://github.com/Romanitho/Winget-AutoUpdate/releases/download/$($WAUVersion)/WAU_InstallCounter" | Out-Null + Invoke-RestMethod -Uri "https://github.com/Romanitho/Winget-AutoUpdate/releases/download/v$($WAUVersion)/WAU_InstallCounter" | Out-Null Write-ToLog "-> WAU Installation succeeded!`n" "Green" Start-sleep 1 diff --git a/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 b/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 index bf0b77e..f5b82b7 100644 --- a/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 +++ b/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 @@ -183,7 +183,7 @@ function Invoke-PostUpdateActions { $Script:WAUConfig = Get-WAUConfig #Add 1 to counter file - Invoke-RestMethod -Uri "https://github.com/Romanitho/Winget-AutoUpdate/releases/download/$($WAUVersion)/WAU_InstallCounter" | Out-Null + Invoke-RestMethod -Uri "https://github.com/Romanitho/Winget-AutoUpdate/releases/download/v$($WAUConfig.DisplayVersion)/WAU_InstallCounter" | Out-Null #log Write-ToLog "Post Update actions finished" "green"