From 3f0ea6a0f25f41a5ef33a0cc534ea7a365698fe9 Mon Sep 17 00:00:00 2001 From: Ben Miller Date: Thu, 19 Jun 2025 14:26:06 -0600 Subject: [PATCH] foam_sync.ps1 (LIFEBALANCE) 2025-06-19T14:26:06Z --- foam_sync.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/foam_sync.ps1 b/foam_sync.ps1 index 39e13c7..00f5fcb 100644 --- a/foam_sync.ps1 +++ b/foam_sync.ps1 @@ -11,9 +11,8 @@ $scriptName = (Get-Item $scriptPath).Name # --- Task Setup --- $taskName = 'FoamGitSync' $taskDescription = "Periodically synchronizes the Git repository at $scriptDir using $scriptName." -$fullCommand = "c:\windows\system32\conhost.exe --headless powershell.exe -WindowStyle Hidden -NoProfile -NonInteractive -ExecutionPolicy Bypass -File $scriptPath" -$taskExecute = $fullCommand.Split(" ")[0] -$taskArguments = $fullCommand.Split(" ").Skip(1).Join(" ") +$taskExecute = 'c:\windows\system32\conhost.exe' +$taskArguments = "--headless powershell.exe -WindowStyle Hidden -NoProfile -NonInteractive -ExecutionPolicy Bypass -File $scriptPath" $frequencyMinutes = 2 $timeLimitSeconds = 30