pull/193/head
KnifMelti 2022-10-17 16:47:22 +02:00
parent 8ea72fe083
commit fbf4391779
1 changed files with 2 additions and 2 deletions

View File

@ -70,12 +70,12 @@ else {
Start-NotifTask $Title $Message $MessageType $Balise $OnClickAction Start-NotifTask $Title $Message $MessageType $Balise $OnClickAction
break break
} }
#Run scheduled task
Get-ScheduledTask -TaskName "Winget-AutoUpdate" -ErrorAction Stop | Start-ScheduledTask -ErrorAction Stop
#Starting check - Send notification #Starting check - Send notification
$Message = $NotifLocale.local.outputs.output[6].message $Message = $NotifLocale.local.outputs.output[6].message
$MessageType = "info" $MessageType = "info"
Start-NotifTask $Title $Message $MessageType $Balise $OnClickAction 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 #Sleep until the task is done
While (Test-WAUisRunning) { While (Test-WAUisRunning) {
Start-Sleep 3 Start-Sleep 3