diff options
| author | Max Howell | 2010-11-08 13:06:45 +0000 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-12 11:55:04 -0800 |
| commit | 453a5c692b70ec9d55b5739e7af5b4d034798f2b (patch) | |
| tree | 79b8816a6b1470e2a9ba504777cff114a5591f61 /Library | |
| parent | 9f451154ea8a1527ed826e0624b4bd592bb34492 (diff) | |
| download | homebrew-453a5c692b70ec9d55b5739e7af5b4d034798f2b.tar.bz2 | |
Don't open editor if no args passed
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/utils.rb | 2 |
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" |
