diff --git a/foam_sync.ps1 b/foam_sync.ps1 index ca4903f..7234510 100644 --- a/foam_sync.ps1 +++ b/foam_sync.ps1 @@ -50,7 +50,7 @@ $taskDescription = "Periodically synchronizes the Git repository at $scriptDir u $taskPrincipal = New-ScheduledTaskPrincipal -UserId $env:USERNAME -LogonType InteractiveOrPassword # Trigger configuration -$trigger = New-ScheduledTaskTrigger -Once -At (Get-Date) -RepetitionInterval (New-TimeSpan -Minutes $frequencyMinutes) -RepetitionDuration ([TimeSpan]::MaxValue) +$trigger = New-ScheduledTaskTrigger -Once -At (Get-Date) -RepetitionInterval (New-TimeSpan -Minutes $frequencyMinutes) # Action configuration: run this script $action = New-ScheduledTaskAction -Execute "powershell.exe" -Argument "-NoProfile -NonInteractive -ExecutionPolicy Bypass -File `"$scriptPath`""