Add missing newline to link and unlink in verbose mode
This commit is contained in:
parent
7b389fbfed
commit
714bfee8d9
@ -35,6 +35,7 @@ module Homebrew extend self
|
||||
|
||||
keg.lock do
|
||||
print "Linking #{keg}... " do
|
||||
puts if ARGV.verbose?
|
||||
puts "#{keg.link(mode)} symlinks created"
|
||||
end
|
||||
end
|
||||
@ -54,9 +55,9 @@ module Homebrew extend self
|
||||
def print str, &block
|
||||
Kernel.print str
|
||||
puts_capture = Class.new do
|
||||
def self.puts str
|
||||
def self.puts(*args)
|
||||
$did_puts = true
|
||||
Kernel.puts str
|
||||
Kernel.puts(*args)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@ -5,6 +5,7 @@ module Homebrew extend self
|
||||
ARGV.kegs.each do |keg|
|
||||
keg.lock do
|
||||
print "Unlinking #{keg}... "
|
||||
puts if ARGV.verbose?
|
||||
puts "#{keg.unlink} links removed"
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user