Skip to content

Commit 6817781

Browse files
committed
Print stdout in Exec and ExecInCoreDir
1 parent e6fe615 commit 6817781

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

hbs.tcl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,11 @@ namespace eval hbs {
821821
return 0
822822
}
823823

824-
set err [catch { eval exec -ignorestderr $cmd }]
824+
set err [catch { eval exec -ignorestderr $cmd} output]
825+
if {$output ne ""} {
826+
puts $output
827+
}
828+
825829
return $err
826830
}
827831

@@ -863,7 +867,10 @@ namespace eval hbs {
863867
set hbsFileDir [file dirname [dict get $hbs::cores ::hbs::$hbs::ThisCorePath file]]
864868
cd $hbsFileDir
865869

866-
set err [catch { eval exec -ignorestderr $cmd }]
870+
set err [catch { eval exec -ignorestderr $cmd} output]
871+
if {$output ne ""} {
872+
puts $output
873+
}
867874

868875
cd $workDir
869876
return $err

0 commit comments

Comments
 (0)