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:
Carrie Roberts
2020-01-24 09:19:10 -07:00
committed by Michael Haag
parent d4cb776600
commit b43af855ba
2 changed files with 2 additions and 3 deletions
@@ -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
@@ -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
}