aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2010-11-08 13:06:45 +0000
committerAdam Vandenberg2011-03-12 11:55:04 -0800
commit48fe9224561a57af841614ae93e5ab88769a6e4d (patch)
treeca1545aebe7b0c1a64ce5ee1ba97d10be257c336 /Library
parente96744eb6f94c19eb0910c61984e7121e063f970 (diff)
downloadbrew-48fe9224561a57af841614ae93e5ab88769a6e4d.tar.bz2
Don't open editor if no args passed
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index f1d62ffe1..7f2001f91 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -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"