Skip to content

Commit 0b46261

Browse files
committed
fix execution trigger
1 parent 642ae24 commit 0b46261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ExecScheduledCommand.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ function Push-ExecScheduledCommand {
276276
Write-Information 'Sent the results to the target. Updating the task state.'
277277

278278
try {
279-
if ($task.Recurrence -eq '0' -or [string]::IsNullOrEmpty($task.Recurrence) -or $Trigger.ExecutionMode.value -eq 'once') {
279+
if ($task.Recurrence -eq '0' -or [string]::IsNullOrEmpty($task.Recurrence) -or $Trigger.ExecutionMode.value -eq 'once' -or $) {
280280
Write-Information 'Recurrence empty or 0. Task is not recurring. Setting task state to completed.'
281281
Update-AzDataTableEntity -Force @Table -Entity @{
282282
PartitionKey = $task.PartitionKey

0 commit comments

Comments
 (0)