diff options
| author | Jack Nagel | 2013-03-21 17:20:57 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-03-21 17:20:57 -0500 |
| commit | ddbb98413cede48064e59e9d734780353e8a54de (patch) | |
| tree | a8dd5ec69a7e146db3670a8711bf9aa15374fcbb /Library | |
| parent | 9714f5a210491200a98bdeefb294f296e415ed4b (diff) | |
| download | homebrew-ddbb98413cede48064e59e9d734780353e8a54de.tar.bz2 | |
Turn double modifier into a single conditional
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/utils.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index b7a3119a2..ddcdc1aab 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -34,13 +34,13 @@ class Tty end def ohai title, *sput - title = title.to_s[0, Tty.width - 4] if $stdout.tty? unless ARGV.verbose? + title = title.to_s[0, Tty.width - 4] if $stdout.tty? && !ARGV.verbose? puts "#{Tty.blue}==>#{Tty.white} #{title}#{Tty.reset}" puts sput unless sput.empty? end def oh1 title - title = title.to_s[0, Tty.width - 4] if $stdout.tty? unless ARGV.verbose? + title = title.to_s[0, Tty.width - 4] if $stdout.tty? && !ARGV.verbose? puts "#{Tty.green}==>#{Tty.white} #{title}#{Tty.reset}" end |
