foam_sync.ps1 (LIFEBALANCE) 2025-06-18T23:58:32Z

This commit is contained in:
Ben Miller
2025-06-18 23:58:32 -06:00
parent f51a827fae
commit da806e9c62

View File

@ -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`""