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

This commit is contained in:
Fabio Pelosin
2012-05-17 13:49:38 +02:00
parent 572ac974d3
commit b9ea515890

View File

@@ -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`