We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a3950d commit f022aeeCopy full SHA for f022aee
rake/lib/rake.rb
@@ -479,8 +479,10 @@ def sh(*cmd, &block)
479
options = {}
480
end
481
unless block_given?
482
+ show_command = cmd.join(" ")
483
+ show_command = show_command[0,42] + "..." if show_command.length > 45
484
block = lambda { |ok, status|
- ok or fail "Command failed with status (#{status.exitstatus}): [#{cmd.join(" ")}]"
485
+ ok or fail "Command failed with status (#{status.exitstatus}): [#{show_command}]"
486
}
487
488
fu_check_options options, :noop, :verbose
0 commit comments