Skip to content

Commit 14a4c32

Browse files
committed
Show all of the sh command if in trace mode.
1 parent 6855092 commit 14a4c32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rake.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ def sh(*cmd, &block)
960960
options = (Hash === cmd.last) ? cmd.pop : {}
961961
unless block_given?
962962
show_command = cmd.join(" ")
963-
show_command = show_command[0,42] + "..."
963+
show_command = show_command[0,42] + "..." unless $trace
964964
# TODO code application logic heref show_command.length > 45
965965
block = lambda { |ok, status|
966966
ok or fail "Command failed with status (#{status.exitstatus}): [#{show_command}]"

0 commit comments

Comments
 (0)