lib/ext/notify.rb in git-multi-1.0.5 vs lib/ext/notify.rb in git-multi-1.0.6
- old
+ new
@@ -11,10 +11,10 @@
subtitle = options[:subtitle]
warn(subtitle ? "#{subtitle}: #{message}" : message) if $VERBOSE
# send a given message to the Mac OS X Notification Center
# but only if the git-multi script is running interactively
# and if the "terminal-notifier" gem has been installed...
- if $INTERACTIVE && defined?(TerminalNotifier)
+ interactive? && defined?(TerminalNotifier) && begin
options[:title] ||= 'git-multi'
TerminalNotifier.notify(message, options, verbose)
end
end