From fbf43917795c075956c50ac16e96166490d39673 Mon Sep 17 00:00:00 2001 From: KnifMelti Date: Mon, 17 Oct 2022 16:47:22 +0200 Subject: [PATCH] Catch... --- Winget-AutoUpdate/user-run.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Winget-AutoUpdate/user-run.ps1 b/Winget-AutoUpdate/user-run.ps1 index a24474a..1ec5eed 100644 --- a/Winget-AutoUpdate/user-run.ps1 +++ b/Winget-AutoUpdate/user-run.ps1 @@ -70,12 +70,12 @@ else { Start-NotifTask $Title $Message $MessageType $Balise $OnClickAction break } + #Run scheduled task + Get-ScheduledTask -TaskName "Winget-AutoUpdate" -ErrorAction Stop | Start-ScheduledTask -ErrorAction Stop #Starting check - Send notification $Message = $NotifLocale.local.outputs.output[6].message $MessageType = "info" Start-NotifTask $Title $Message $MessageType $Balise $OnClickAction - #Run scheduled task - Get-ScheduledTask -TaskName "Winget-AutoUpdate" -ErrorAction Stop | Start-ScheduledTask -ErrorAction Stop #Sleep until the task is done While (Test-WAUisRunning) { Start-Sleep 3