Don't open editor if no args passed

This commit is contained in:
Max Howell 2010-11-08 13:06:45 +00:00 committed by Adam Vandenberg
parent e96744eb6f
commit 48fe922456

View File

@ -113,6 +113,8 @@ def puts_columns items, cols = 4
end
def exec_editor *args
return if args.to_s.empty?
editor = ENV['HOMEBREW_EDITOR'] || ENV['EDITOR']
if editor.nil?
editor = if system "/usr/bin/which -s mate"