fix null error when using -Cleanup and -ShowDetails (#555)

This commit is contained in:
Carrie Roberts
2019-09-05 17:37:48 -06:00
committed by Michael Haag
parent 95f2a5ed6f
commit 06c3bb433a
@@ -209,7 +209,7 @@ function Invoke-AtomicTest {
Write-Debug -Message 'Getting executor and build command script'
if ($ShowDetails) {
if ($ShowDetails -and ($null -ne $finalCommand)) {
Write-Information -MessageData $finalCommand -Tags 'Command'
}
else {