catch execution errors (#2564)

Co-authored-by: Michael Haag <5632822+MHaggis@users.noreply.github.com>
This commit is contained in:
Carrie Roberts
2023-10-11 21:36:32 -06:00
committed by GitHub
parent 8b50a4ffab
commit cb70464f85
+2 -1
View File
@@ -37,7 +37,8 @@ atomic_tests:
executor:
command: |
import-module "PathToAtomicsFolder\..\ExternalPayloads\SharpHound.ps1"
Invoke-BloodHound -OutputDirectory $env:Temp
try { Invoke-BloodHound -OutputDirectory $env:Temp }
catch { $_; exit $_.Exception.HResult}
Start-Sleep 5
cleanup_command: |
Remove-Item $env:Temp\*BloodHound.zip -Force