From 2928c730d486cbe8e906788a1ca797be51076be9 Mon Sep 17 00:00:00 2001 From: clr2of8 Date: Mon, 2 Oct 2023 18:48:41 -0600 Subject: [PATCH] add atomic runner hooks --- Public/Invoke-AtomicRunner.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Public/Invoke-AtomicRunner.ps1 b/Public/Invoke-AtomicRunner.ps1 index 29e089b..2915143 100755 --- a/Public/Invoke-AtomicRunner.ps1 +++ b/Public/Invoke-AtomicRunner.ps1 @@ -1,4 +1,5 @@ . "$PSScriptRoot\Invoke-RunnerScheduleMethods.ps1" + function Invoke-AtomicRunner { [CmdletBinding( SupportsShouldProcess = $true, @@ -173,6 +174,7 @@ function Invoke-AtomicRunner { } return } + # exit if file stop.txt is found If (Test-Path $artConfig.stopFile) { LogRunnerMsg "exiting script because $($artConfig.stopFile) does exist"