diff options
| author | Markus Reiter | 2017-07-26 20:30:37 +0200 |
|---|---|---|
| committer | Markus Reiter | 2017-07-26 20:30:37 +0200 |
| commit | d8288eeb3a962c7647a9240caf13cc174e98d5d2 (patch) | |
| tree | 0acb129edf2d9d30c7d21a7fe8302d9bc60dc97c /Library/Homebrew/cask/lib | |
| parent | 88b762f78447842a6187e0fda49c9493f029cbef (diff) | |
| download | brew-d8288eeb3a962c7647a9240caf13cc174e98d5d2.tar.bz2 | |
Don’t output Caskroom creation messages on non-TTY.
Diffstat (limited to 'Library/Homebrew/cask/lib')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/caskroom.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/caskroom.rb b/Library/Homebrew/cask/lib/hbc/caskroom.rb index 7f4aab0a9..b5c947f4b 100644 --- a/Library/Homebrew/cask/lib/hbc/caskroom.rb +++ b/Library/Homebrew/cask/lib/hbc/caskroom.rb @@ -5,10 +5,10 @@ module Hbc def ensure_caskroom_exists return if Hbc.caskroom.exist? - ohai "Creating Caskroom at #{Hbc.caskroom}" + ohai "Creating Caskroom at #{Hbc.caskroom}" if $stdout.tty? sudo = !Hbc.caskroom.parent.writable? - ohai "We'll set permissions properly so we won't need sudo in the future" if sudo + ohai "We'll set permissions properly so we won't need sudo in the future" if $stdout.tty? && sudo SystemCommand.run("/bin/mkdir", args: ["-p", Hbc.caskroom], sudo: sudo) SystemCommand.run("/bin/chmod", args: ["g+rwx", Hbc.caskroom], sudo: sudo) |
