From 7d7ca0cb1a7d83fe60ec8b7a0598e8f29d2c526d Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sun, 4 Dec 2016 21:52:30 +0100 Subject: Use Homebrew’s `Emoji` class in cask installer. --- Library/Homebrew/cask/lib/hbc/installer.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Library/Homebrew/cask/lib') diff --git a/Library/Homebrew/cask/lib/hbc/installer.rb b/Library/Homebrew/cask/lib/hbc/installer.rb index afdaa2ec5..90e5b1e01 100644 --- a/Library/Homebrew/cask/lib/hbc/installer.rb +++ b/Library/Homebrew/cask/lib/hbc/installer.rb @@ -82,11 +82,8 @@ module Hbc end def summary - s = if MacOS.version >= :lion && !ENV["HOMEBREW_NO_EMOJI"] - (ENV["HOMEBREW_INSTALL_BADGE"] || "\xf0\x9f\x8d\xba") + " " - else - Formatter.headline("Success! ", color: :blue) - end + s = "" + s << "#{Emoji.install_badge} " if Emoji.enabled? s << "#{@cask} was successfully installed!" end -- cgit v1.2.3