From bd764a142912daa84c9cce85b4f81cf9fa00cf4e Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 27 Aug 2024 03:45:44 +0200 Subject: [PATCH] Exit script after running OneShot task --- scripts/Common/Scripts/Operations.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Common/Scripts/Operations.ps1 b/scripts/Common/Scripts/Operations.ps1 index 29dacee4..32f124fe 100644 --- a/scripts/Common/Scripts/Operations.ps1 +++ b/scripts/Common/Scripts/Operations.ps1 @@ -187,6 +187,8 @@ $null = New-Module { Set-Stage ([SetupStage]::Idle); Write-EventLog -LogName $logName -Source $logName -EventId $oneShotTrigger -Message "The OneShot task ``$(Get-OneShotTask)`` finished."; } + + exit; } <#