Fix show details bug (#647)

check prereqs with -showdetails was executing the prereq command instead of showing the details
This commit is contained in:
derekenjibowden
2019-11-12 00:26:33 -06:00
committed by Carrie Roberts
parent 7a26c61e28
commit c6ea937fb4
@@ -231,8 +231,10 @@ function Invoke-AtomicTest {
Write-Debug -Message 'Getting executor and build command script'
if ($ShowDetails -and ($null -ne $finalCommand)) {
Write-Information -MessageData $finalCommand -Tags 'Command'
if ($ShowDetails) {
if ($null -ne $finalCommand){
Write-Information -MessageData $finalCommand -Tags 'Command'
}
}
else {
$startTime = get-date