mirror of
https://github.com/zhigang1992/CocoaPods.git
synced 2026-04-30 10:22:26 +08:00
[Executable] Remove original white space formatting from the output.
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user