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"