diff options
| author | Jack Nagel | 2014-03-27 15:50:06 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-27 16:27:46 -0500 |
| commit | fe35d9aa7947bfd4e1323f3fb2d8968d2783bc4f (patch) | |
| tree | aae64ddb344e18141b8f0fd5db5dcc8ae7e75afa /Library/Homebrew/cmd | |
| parent | 51a1696ad63248bf3c309aaaceab045f1d98b5de (diff) | |
| download | homebrew-fe35d9aa7947bfd4e1323f3fb2d8968d2783bc4f.tar.bz2 | |
link: print wrapper is not always required
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/link.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/Homebrew/cmd/link.rb b/Library/Homebrew/cmd/link.rb index ff1f7fcf6..742195d6d 100644 --- a/Library/Homebrew/cmd/link.rb +++ b/Library/Homebrew/cmd/link.rb @@ -20,15 +20,13 @@ module Homebrew extend self puts "Note that doing so can interfere with building software." next elsif mode.dry_run && mode.overwrite - print "Would remove:\n" do - keg.link(mode) - end + puts "Would remove:" + keg.link(mode) next elsif mode.dry_run - print "Would link:\n" do - keg.link(mode) - end + puts "Would link:" + keg.link(mode) next end |
