Commit b9ea5158 authored by Fabio Pelosin's avatar Fabio Pelosin

[Executable] Remove original white space formatting from the output.

parent 572ac974
......@@ -7,13 +7,13 @@ module Pod
raise Informative, "Unable to locate the executable `#{name}'"
end
if Config.instance.verbose?
print " $ #{name} #{command.length > 20 ? command[0..20] + '...' : command}\r"
print " $ #{name}...\r"
$stdout.flush
output = `#{bin} #{command} 2>&1`
puts " #{$?.exitstatus.zero? ? '-' : '!'.red} #{name} #{command}"
output = output.gsub(/^ */,' ')
output = output.gsub(/ */,' ').gsub(/^ */,' ')
puts output unless output.strip.empty?
else
`#{bin} #{command} 2> /dev/null`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment