Only show cleanup (with inputs) if there are inputs (#792)
* move emond test into correct T# * only show cleanup with inputs if there are inputs Co-authored-by: Tony M Lambert <ForensicITGuy@users.noreply.github.com> Co-authored-by: Michael Haag <mike@redcanary.com>
This commit is contained in:
committed by
Michael Haag
parent
d4cb776600
commit
b43af855ba
+1
-1
@@ -22,7 +22,7 @@ function Show-Details ($test, $testCount, $technique, $customInputArgs, $PathToA
|
||||
Write-Host -ForegroundColor Yellow "Cleanup Commands:"
|
||||
$final_command = Merge-InputArgs $test.executor.cleanup_command $test $customInputArgs $PathToAtomicsFolder
|
||||
Write-KeyValue "Command:`n" $test.executor.cleanup_command.trim()
|
||||
if ($test.executor.command -ne $final_command) { Write-KeyValue "Command (with inputs):`n" $final_command.trim() }
|
||||
if ($test.executor.cleanup_command -ne $final_command) { Write-KeyValue "Command (with inputs):`n" $final_command.trim() }
|
||||
}
|
||||
|
||||
# Dependencies
|
||||
|
||||
+1
-2
@@ -264,5 +264,4 @@ function Invoke-AtomicTest {
|
||||
|
||||
} # End of PROCESS block
|
||||
END { } # Intentionally left blank and can be removed
|
||||
}
|
||||
# Invoke-AtomicTest t1003 -TestNumbers 13 -GetPrereqs
|
||||
}
|
||||
Reference in New Issue
Block a user